From 0e7ddfea08e9293fd00cd37cf1dad9594a10d4a3 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 4 Sep 2013 22:07:28 +0100 Subject: [PATCH] Fix for issue #235, check for KEY_CODE_YES --- src/ui/inputwin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index 0ab53131..1e6e7a59 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;