Browse Source

Pin dir when visitng target file in find and list

master
Arun Prakash Jana 4 years ago
parent
commit
6fa4978230
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/nnn.c

+ 4
- 0
src/nnn.c 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);


Loading…
Cancel
Save