diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-07-07 07:29:38 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-07-07 07:29:38 +0530 |
commit | 6fa4978230becc487521c600cfc5ff3f132fb8d6 (patch) | |
tree | 572ee6ae0d2432bb4bdabf4ca166b749236d8777 /src | |
parent | 509f069818af696c4a144da2af2ec8f2655b89f1 (diff) | |
download | nnn-6fa4978230becc487521c600cfc5ff3f132fb8d6.tar.gz |
Pin dir when visitng target file in find and list
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |