From: Arun Prakash Jana Date: Sat, 17 Apr 2021 14:55:58 +0000 (+0530) Subject: Got to last dir on '~' or '/' key repeat X-Git-Tag: v4.1~148 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=69431e49a9e0943912a15a83a8a29d5b4dd4598e;p=nnn.git Got to last dir on '~' or '/' key repeat --- diff --git a/src/nnn.c b/src/nnn.c index 250661f4..19e32cfd 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -6329,9 +6329,12 @@ nochange: } if (strcmp(path, dir) == 0) { - if (cfg.filtermode) - presel = FILTER; - goto nochange; + 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) {