mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Got to last dir on '~' or '/' key repeat
This commit is contained in:
parent
430833326b
commit
69431e49a9
1 changed files with 6 additions and 3 deletions
|
@ -6329,9 +6329,12 @@ nochange:
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(path, dir) == 0) {
|
if (strcmp(path, dir) == 0) {
|
||||||
if (cfg.filtermode)
|
if (dir == ipath) {
|
||||||
presel = FILTER;
|
if (cfg.filtermode)
|
||||||
goto nochange;
|
presel = FILTER;
|
||||||
|
goto nochange;
|
||||||
|
}
|
||||||
|
dir = lastdir; /* Go to last dir on home/root key repeat */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (chdir(dir) == -1) {
|
if (chdir(dir) == -1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue