about summary refs log tree commit diff stats
path: root/src/ui/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/core.c')
-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 f72ec732..4757547f 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -178,7 +178,7 @@ static 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;