]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix locker not invoked
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 5 Nov 2020 15:10:31 +0000 (20:40 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 5 Nov 2020 15:10:31 +0000 (20:40 +0530)
src/nnn.c

index f0efa2dc9de3dac99e91e9c684b5d1b54f63dff0..b713a472acbb46c91bc2a2132d24fc75528d4d88 100644 (file)
--- 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();