]> Sergey Matveev's repositories - nnn.git/commitdiff
Do not reload dir after running plugin
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 26 Sep 2019 16:15:08 +0000 (21:45 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 26 Sep 2019 16:15:08 +0000 (21:45 +0530)
src/nnn.c

index a7d678b4bda78bb505cb6cdd51b9f92c9992edcb..4e5ed5925787caec37641b9e7338df03853c69fc 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4437,7 +4437,10 @@ nochange:
                                                spawn(newpath, dents[cur].name, NULL, path, F_NORMAL);
                                        else
                                                spawn(newpath, NULL, NULL, path, F_NORMAL);
-                                       break;
+
+                                       if (cfg.filtermode)
+                                               presel = FILTER;
+                                       goto nochange;
                                }
 
                                cfg.runplugin ^= 1;