about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-09-13 16:28:08 +0100
committerJames Booth <boothj5@gmail.com>2013-09-13 16:29:26 +0100
commite9361f834ae42e3218712d25f0d532dd1f1dc6b9 (patch)
treeb8978cede73659e72b7c37ab3002d628f409a9ab /src
parentdf14a46d4864eecbb0344eb05dcb929f72954871 (diff)
downloadprofani-tty-e9361f834ae42e3218712d25f0d532dd1f1dc6b9.tar.gz
Check for KEY_CODE_YES before sending typing notifications
fixes #239
Diffstat (limited to 'src')
-rw-r--r--src/ui/inputwin.c7
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();
         }
     }