Pin dir when visitng target file in find and list

This commit is contained in:
Arun Prakash Jana 2020-07-07 07:29:38 +05:30
parent 509f069818
commit 6fa4978230
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -5666,6 +5666,10 @@ nochange:
goto nochange; goto nochange;
} }
/* Pin current directory */
free(mark);
mark = xstrdup(path);
cdprep(lastdir, NULL, path, newpath) cdprep(lastdir, NULL, path, newpath)
? (presel = FILTER) : (watch = TRUE); ? (presel = FILTER) : (watch = TRUE);
xstrsncpy(lastname, pdents[cur].name, NAME_MAX + 1); xstrsncpy(lastname, pdents[cur].name, NAME_MAX + 1);