]> Sergey Matveev's repositories - nnn.git/commitdiff
Show marker only when spawning a shell.
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 6 Apr 2017 04:27:32 +0000 (09:57 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 6 Apr 2017 04:27:32 +0000 (09:57 +0530)
nnn.c

diff --git a/nnn.c b/nnn.c
index b8aeb21fab979d9974fff7bc56fd932ef735ff9c..e12e1471fa32ea51ba3e1ccd56820e655254aeaa 100644 (file)
--- a/nnn.c
+++ b/nnn.c
@@ -1185,7 +1185,7 @@ nochange:
                                        }
                                }
                                exitcurses();
-                               spawn(bin, newpath, NULL, 1);
+                               spawn(bin, newpath, NULL, 0);
                                initcurses();
                                continue;
                        }
@@ -1351,7 +1351,7 @@ nochange:
                case SEL_RUN:
                        run = xgetenv(env, run);
                        exitcurses();
-                       spawn(run, NULL, path, 0);
+                       spawn(run, NULL, path, 1);
                        initcurses();
                        /* Re-populate as directory content may have changed */
                        goto begin;