]> Sergey Matveev's repositories - nnn.git/commitdiff
Retain nav-as-you-type mode after exiting spawned shell
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 16 Mar 2018 17:16:03 +0000 (22:46 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 16 Mar 2018 17:16:03 +0000 (22:46 +0530)
nnn.c

diff --git a/nnn.c b/nnn.c
index d5d544cdd0cd31040f89f8df4ffad0c153bf9a6a..95a0edc4149f83ad25e3992c726d3bdb7ea0ddbb 100644 (file)
--- a/nnn.c
+++ b/nnn.c
@@ -3167,10 +3167,16 @@ nochange:
                case SEL_RUN:
                        run = xgetenv(env, run);
                        spawn(run, NULL, NULL, path, F_NORMAL | F_MARKER);
-                       /* Repopulate as directory content may have changed */
+
+                       /* Continue in navigate-as-you-type mode, if enabled */
+                       if (cfg.filtermode)
+                               presel = FILTER;
+
                        /* Save current */
                        if (ndents > 0)
                                copycurname();
+
+                       /* Repopulate as directory content may have changed */
                        goto begin;
                case SEL_RUNARG:
                        run = xgetenv(env, run);