diff --git a/src/nnn.c b/src/nnn.c index 2d9b2c98..45dc18cc 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);