diff options
author | James Booth <boothj5@gmail.com> | 2015-01-01 22:47:09 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-01-01 22:47:09 +0000 |
commit | 0a7277a7f5fc6f25c158c16273746734d2834dfd (patch) | |
tree | e87cca04b2f74423a251563df5c7eb2d1fcc6bd1 /src/ui | |
parent | 0d25ae6d7e02795a5c4f0e822c6cfa9d04c9c221 (diff) | |
parent | ab750597036f36198ecbc72b34b68436030cce0e (diff) | |
download | profani-tty-0a7277a7f5fc6f25c158c16273746734d2834dfd.tar.gz |
Merge branch 'master' into title
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/inputwin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index 159bcdd3..4165bd3f 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -558,8 +558,9 @@ _handle_edit(int result, const wint_t ch, char *input, int *size) break; case KEY_CTRL_U: - *size = 0; - inp_win_reset(); + while (getcurx(inp_win) > 0) { + _delete_previous_word(input, size); + } return 1; break; |