mirror of
https://github.com/jarun/nnn.git
synced 2025-04-01 19:16:42 +00:00
Pin dir when visitng target file in find and list
This commit is contained in:
parent
509f069818
commit
6fa4978230
1 changed files with 4 additions and 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);
|
||||
|
|
Loading…
Add table
Reference in a new issue