diff options
author | James Booth <boothj5@gmail.com> | 2015-11-09 00:34:17 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-11-09 00:34:17 +0000 |
commit | bee3e15ea417b48d2644ad1772ff8f191b242c07 (patch) | |
tree | e4872c0e7b91e1daf212258ee3c8346a26f870b4 /src | |
parent | 6feaa12253774e6c4da2f29d262a5f592c761cd5 (diff) | |
download | profani-tty-bee3e15ea417b48d2644ad1772ff8f191b242c07.tar.gz |
Clear Readline undo list when autocompleting command history
fixes #667
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/inputwin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index ac9fb477..caf5387e 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -434,7 +434,7 @@ _inp_rl_tab_handler(int count, int key) if ((strncmp(rl_line_buffer, "/", 1) != 0) && (current->type == WIN_MUC)) { char *result = muc_autocomplete(current, rl_line_buffer); if (result) { - rl_replace_line(result, 0); + rl_replace_line(result, 1); rl_point = rl_end; free(result); } @@ -442,7 +442,7 @@ _inp_rl_tab_handler(int count, int key) ProfWin *window = wins_get_current(); char *result = cmd_autocomplete(window, rl_line_buffer); if (result) { - rl_replace_line(result, 0); + rl_replace_line(result, 1); rl_point = rl_end; free(result); } |