diff options
author | James Booth <boothj5@gmail.com> | 2015-01-01 22:44:21 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-01-01 22:44:21 +0000 |
commit | ab750597036f36198ecbc72b34b68436030cce0e (patch) | |
tree | d751b9e1c106748b4a837fc5070910ec51463735 /src | |
parent | e7501e581c78e752da81a13178225e1b56522a39 (diff) | |
download | profani-tty-ab750597036f36198ecbc72b34b68436030cce0e.tar.gz |
Added correct Ctrl-U handling back
Diffstat (limited to 'src')
-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; |