]> Sergey Matveev's repositories - nnn.git/commitdiff
Re-populate after spawning shell
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 15 Feb 2018 13:51:58 +0000 (19:21 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 15 Feb 2018 13:51:58 +0000 (19:21 +0530)
nnn.c

diff --git a/nnn.c b/nnn.c
index 8347655a166a3321e5200a387186dcdfb86b127f..7736ff9bc3f4776f03e0fe2e93b0e1ed405752d6 100644 (file)
--- a/nnn.c
+++ b/nnn.c
@@ -3049,6 +3049,9 @@ nochange:
                        run = xgetenv(env, run);
                        spawn(run, NULL, NULL, path, F_NORMAL | F_MARKER);
                        /* Repopulate as directory content may have changed */
+                       /* Save current */
+                       if (ndents > 0)
+                               copycurname();
                        goto begin;
                case SEL_RUNARG:
                        run = xgetenv(env, run);