aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 2d9b2c9..45dc18c 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5666,6 +5666,10 @@ nochange:
goto nochange;
}
+ /* Pin current directory */
+ free(mark);
+ mark = xstrdup(path);
+
cdprep(lastdir, NULL, path, newpath)
? (presel = FILTER) : (watch = TRUE);
xstrsncpy(lastname, pdents[cur].name, NAME_MAX + 1);