diff options
-rwxr-xr-x | vchat-ui.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1150,6 +1150,7 @@ initui (void) | |||
1150 | rl_readline_name = "vchat-client"; | 1150 | rl_readline_name = "vchat-client"; |
1151 | 1151 | ||
1152 | /* set up nick completion functions .. */ | 1152 | /* set up nick completion functions .. */ |
1153 | rl_ignore_completion_duplicates = 0; | ||
1153 | #ifdef OLDREADLINE | 1154 | #ifdef OLDREADLINE |
1154 | rl_completion_entry_function = (Function *) ul_nickcomp; | 1155 | rl_completion_entry_function = (Function *) ul_nickcomp; |
1155 | rl_attempted_completion_function = vcccomplete; | 1156 | rl_attempted_completion_function = vcccomplete; |
@@ -1322,10 +1323,8 @@ nickprompt (void) | |||
1322 | lastlen = 23; | 1323 | lastlen = 23; |
1323 | 1324 | ||
1324 | /* wipe input line and reset cursor */ | 1325 | /* wipe input line and reset cursor */ |
1325 | wmove (input, 0, 0); | 1326 | rl_kill_full_line(0,0); |
1326 | for (i = 0; i < input->_maxx; i++) | 1327 | wclear(input); |
1327 | waddch(input, ' '); | ||
1328 | wmove(input, 0, 0); | ||
1329 | 1328 | ||
1330 | /* reset consoleline */ | 1329 | /* reset consoleline */ |
1331 | consoleline(NULL); | 1330 | consoleline(NULL); |