aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index f0efa2d..b713a47 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -7077,10 +7077,11 @@ nochange:
if (xlines != LINES || xcols != COLS)
continue;
- if (idletimeout && idle == idletimeout)
+ if (idletimeout && idle == idletimeout) {
lock_terminal(); /* Locker */
+ idle = 0;
+ }
- idle = 0;
if (ndents)
copycurname();