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,10 +6329,13 @@ nochange:
|
|||
}
|
||||
|
||||
if (strcmp(path, dir) == 0) {
|
||||
if (dir == ipath) {
|
||||
if (cfg.filtermode)
|
||||
presel = FILTER;
|
||||
goto nochange;
|
||||
}
|
||||
dir = lastdir; /* Go to last dir on home/root key repeat */
|
||||
}
|
||||
|
||||
if (chdir(dir) == -1) {
|
||||
presel = MSGWAIT;
|
||||
|
|
Loading…
Add table
Reference in a new issue