aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-11-05 20:40:31 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-11-05 20:40:31 +0530
commitd8d43ca85f0fe31b19445db642f3456111ac9c55 (patch)
tree962286be3739d95656dae5393d0415c07fd6a5d1 /src/nnn.c
parent9f6808a35a91a0919c59432c6127394b737e1b9c (diff)
downloadnnn-d8d43ca85f0fe31b19445db642f3456111ac9c55.tar.gz
Fix locker not invoked
Diffstat (limited to 'src/nnn.c')
-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();