From: Arun Prakash Jana Date: Sat, 27 Jun 2020 16:52:20 +0000 (+0530) Subject: Pin current path on archive/remote mount X-Git-Tag: v3.3~16 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=56b96cbf74b4d90b704c89da461cd063f81a9fb6;p=nnn.git Pin current path on archive/remote mount --- diff --git a/src/nnn.c b/src/nnn.c index 4e140577..5da3653a 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -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);