about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/inputwin.c5
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;