]> Sergey Matveev's repositories - nnn.git/commitdiff
Retain filter on single file removal
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 7 Jan 2020 12:58:30 +0000 (18:28 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 7 Jan 2020 12:58:30 +0000 (18:28 +0530)
src/nnn.c

index ea2a819c03799538c2c49d2590ed22306bfe100f..035918c96787c79a03107981c2ce114dcf1a7130 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5071,14 +5071,14 @@ nochange:
                        mkpath(path, dents[cur].name, newpath);
                        xrm(newpath);
 
-                       /* Don't optimize cur if filtering is on */
                        if (cur && access(newpath, F_OK) == -1)
                                move_cursor(cur - 1, 0);
 
                        /* We reduce cur only if it is > 0, so it's at least 0 */
                        copycurname();
 
-                       clearfilter();
+                       if (cfg.filtermode)
+                               presel = FILTER;
 
                        goto begin;
                }