diff options
author | James Booth <boothj5@gmail.com> | 2013-09-04 22:45:47 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-09-04 22:45:47 +0100 |
commit | 9fc5ab4d7faef939999a0dcdfea25b31da59c278 (patch) | |
tree | 36f5f8d7de3d653f65c4b29797a711574faa192c | |
parent | 00f216ac95fd8f096eb57b7aebb315ac6f1da75d (diff) | |
parent | cbdb426343556a2c3a6704b6627a12885f8a87b6 (diff) | |
download | profani-tty-9fc5ab4d7faef939999a0dcdfea25b31da59c278.tar.gz |
Merge branch 'master' into otr
-rw-r--r-- | src/ui/inputwin.c | 3 |
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; |