about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-01-01 22:47:09 +0000
committerJames Booth <boothj5@gmail.com>2015-01-01 22:47:09 +0000
commit0a7277a7f5fc6f25c158c16273746734d2834dfd (patch)
treee87cca04b2f74423a251563df5c7eb2d1fcc6bd1
parent0d25ae6d7e02795a5c4f0e822c6cfa9d04c9c221 (diff)
parentab750597036f36198ecbc72b34b68436030cce0e (diff)
downloadprofani-tty-0a7277a7f5fc6f25c158c16273746734d2834dfd.tar.gz
Merge branch 'master' into title
-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;