nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 6fa4978230becc487521c600cfc5ff3f132fb8d6
parent 509f069818af696c4a144da2af2ec8f2655b89f1
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Tue,  7 Jul 2020 07:29:38 +0530

Pin dir when visitng target file in find and list

Diffstat:
Msrc/nnn.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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);