From: Arun Prakash Jana Date: Tue, 7 Jul 2020 01:59:38 +0000 (+0530) Subject: Pin dir when visitng target file in find and list X-Git-Tag: v3.3~7 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6fa4978230becc487521c600cfc5ff3f132fb8d6;p=nnn.git Pin dir when visitng target file in find and list --- 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);