about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-09-04 22:07:28 +0100
committerJames Booth <boothj5@gmail.com>2013-09-04 22:07:28 +0100
commitcbdb426343556a2c3a6704b6627a12885f8a87b6 (patch)
tree186f456d65b4706e11100776ab8e29c64da02e53 /src
parent343cc0a64ce0ddd5ee20cb5d63f5416a94b592a6 (diff)
downloadprofani-tty-cbdb426343556a2c3a6704b6627a12885f8a87b6.tar.gz
Fix for issue #235, check for KEY_CODE_YES
Diffstat (limited to 'src')
-rw-r--r--src/ui/inputwin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c
index b6162938..de91e826 100644
--- a/src/ui/inputwin.c
+++ b/src/ui/inputwin.c
@@ -250,6 +250,9 @@ _clear_input(void)
 static int
 _handle_edit(int result, const wint_t ch, char *input, int *size)
 {
+    if (result != KEY_CODE_YES) {
+        return 0;
+    }
     char *prev = NULL;
     char *next = NULL;
     int inp_x = 0;