about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/ui/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index c3f185f6..314810b1 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -178,7 +178,7 @@ wint_t
 ui_get_char(char *input, int *size, int *result)
 {
     wint_t ch = inp_get_char(input, size, result);
-    if (ch != ERR) {
+    if (ch != ERR && *result != ERR) {
         ui_reset_idle_time();
     }
     return ch;