diff options
author | James Booth <boothj5@gmail.com> | 2013-09-13 16:28:08 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-09-13 16:29:26 +0100 |
commit | e9361f834ae42e3218712d25f0d532dd1f1dc6b9 (patch) | |
tree | b8978cede73659e72b7c37ab3002d628f409a9ab | |
parent | df14a46d4864eecbb0344eb05dcb929f72954871 (diff) | |
download | profani-tty-e9361f834ae42e3218712d25f0d532dd1f1dc6b9.tar.gz |
Check for KEY_CODE_YES before sending typing notifications
fixes #239
-rw-r--r-- | src/ui/inputwin.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index 70212a68..598911cd 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -127,8 +127,11 @@ inp_get_char(char *input, int *size) if (result == ERR) { prof_handle_idle(); } - if (prefs_get_boolean(PREF_OUTTYPE) && (result != ERR) && !in_command - && _printable(ch)) { + if (prefs_get_boolean(PREF_OUTTYPE) + && (result != ERR) + && (result != KEY_CODE_YES) + && !in_command + && _printable(ch)) { prof_handle_activity(); } } |