]> Sergey Matveev's repositories - nnn.git/commitdiff
Start watching dir if filter mode is disabled
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 13 Mar 2020 21:30:41 +0000 (03:00 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 13 Mar 2020 23:44:25 +0000 (05:14 +0530)
src/nnn.c

index cdb8590799536655186bda88746b191f4d0b07db..f5ee9330830de9d3c407fd29f38a8fa22b42eae1 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5534,7 +5534,11 @@ nochange:
 
                                /* Start watching the directory */
                                dir_changed = TRUE;
-                               break;
+
+                               /* Save current */
+                               if (ndents)
+                                       copycurname();
+                               goto begin;
                        case SEL_HIDDEN:
                                cfg.showhidden ^= 1;
                                if (ndents)
@@ -5568,7 +5572,6 @@ nochange:
                        if (!g_ctx[cfg.curctx].c_fltr[1])
                                goto begin;
 
-                       presel = FILTER; /* If there's a filter, apply it */
                        break;
                case SEL_STATS: // fallthrough
                case SEL_CHMODX: