From 466ff2176692ad032dd0cedefcb39aac0c995b71 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Thu, 3 Apr 2003 17:24:55 +0000 Subject: Stupid Readline Killing --- vchat-ui.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'vchat-ui.c') diff --git a/vchat-ui.c b/vchat-ui.c index eba6ab0..701b5f9 100755 --- a/vchat-ui.c +++ b/vchat-ui.c @@ -1150,6 +1150,7 @@ initui (void) rl_readline_name = "vchat-client"; /* set up nick completion functions .. */ + rl_ignore_completion_duplicates = 0; #ifdef OLDREADLINE rl_completion_entry_function = (Function *) ul_nickcomp; rl_attempted_completion_function = vcccomplete; @@ -1322,10 +1323,8 @@ nickprompt (void) lastlen = 23; /* wipe input line and reset cursor */ - wmove (input, 0, 0); - for (i = 0; i < input->_maxx; i++) - waddch(input, ' '); - wmove(input, 0, 0); + rl_kill_full_line(0,0); + wclear(input); /* reset consoleline */ consoleline(NULL); -- cgit v1.2.3