From ab750597036f36198ecbc72b34b68436030cce0e Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 1 Jan 2015 22:44:21 +0000 Subject: Added correct Ctrl-U handling back --- src/ui/inputwin.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit 1.4.1-2-gfad0