mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Pin current path on archive/remote mount
This commit is contained in:
parent
b3820df863
commit
56b96cbf74
|
@ -5737,6 +5737,10 @@ nochange:
|
||||||
goto nochange;
|
goto nochange;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Pin current directory */
|
||||||
|
free(mark);
|
||||||
|
mark = xstrdup(path);
|
||||||
|
|
||||||
cdprep(lastdir, lastname, path, newpath)
|
cdprep(lastdir, lastname, path, newpath)
|
||||||
? (presel = FILTER) : (watch = TRUE);
|
? (presel = FILTER) : (watch = TRUE);
|
||||||
goto begin;
|
goto begin;
|
||||||
|
@ -5827,6 +5831,10 @@ nochange:
|
||||||
goto nochange;
|
goto nochange;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Pin current directory */
|
||||||
|
free(mark);
|
||||||
|
mark = xstrdup(path);
|
||||||
|
|
||||||
/* In list mode, retain the last file name to highlight it, if possible */
|
/* In list mode, retain the last file name to highlight it, if possible */
|
||||||
cdprep(lastdir, listpath && sel == SEL_CDLAST ? NULL : lastname, path, newpath)
|
cdprep(lastdir, listpath && sel == SEL_CDLAST ? NULL : lastname, path, newpath)
|
||||||
? (presel = FILTER) : (watch = TRUE);
|
? (presel = FILTER) : (watch = TRUE);
|
||||||
|
|
Loading…
Reference in a new issue