aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nnn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nnn.c b/nnn.c
index 8347655..7736ff9 100644
--- 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);