diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-06-27 22:22:20 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-06-27 22:22:20 +0530 |
commit | 56b96cbf74b4d90b704c89da461cd063f81a9fb6 (patch) | |
tree | 7793b51d29214205a0ea13c047b0dc7878cf2c66 /src/nnn.c | |
parent | b3820df86356ec50889809b9791c0645cf917003 (diff) | |
download | nnn-56b96cbf74b4d90b704c89da461cd063f81a9fb6.tar.gz |
Pin current path on archive/remote mount
Diffstat (limited to 'src/nnn.c')
-rw-r--r-- | src/nnn.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -5737,6 +5737,10 @@ nochange: goto nochange; } + /* Pin current directory */ + free(mark); + mark = xstrdup(path); + cdprep(lastdir, lastname, path, newpath) ? (presel = FILTER) : (watch = TRUE); goto begin; @@ -5827,6 +5831,10 @@ nochange: goto nochange; } + /* Pin current directory */ + free(mark); + mark = xstrdup(path); + /* In list mode, retain the last file name to highlight it, if possible */ cdprep(lastdir, listpath && sel == SEL_CDLAST ? NULL : lastname, path, newpath) ? (presel = FILTER) : (watch = TRUE); |