]> Sergey Matveev's repositories - nnn.git/commitdiff
Do not auto-revive filter in nav-to-type mode
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 31 May 2020 17:35:27 +0000 (23:05 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 31 May 2020 17:35:59 +0000 (23:05 +0530)
src/nnn.c

index de172e2775b6992f7740923bc681b2d1ea51a318..3fe3badd2141b977672b797f9f35ebe7bb75fe43 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -6491,20 +6491,16 @@ nochange:
                                cfg.picker ? selbufpos = 0 : write_lastdir(path);
                        return sel == SEL_QUITFAIL ? EXIT_FAILURE : EXIT_SUCCESS;
                default:
-                       r = FALSE;
-                       if (xlines != LINES || xcols != COLS) {
-                               setdirwatch(); /* Terminal resized */
-                               r = TRUE;
-                       } else if (idletimeout && idle == idletimeout)
+                       if (xlines != LINES || xcols != COLS)
+                               continue;
+
+                       if (idletimeout && idle == idletimeout)
                                lock_terminal(); /* Locker */
 
                        idle = 0;
                        if (ndents)
                                copycurname();
 
-                       if (r)
-                               continue;
-
                        goto nochange;
                } /* switch (sel) */
        }