nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 69431e49a9e0943912a15a83a8a29d5b4dd4598e
parent 430833326b327b69d304868c4aade99e79bbfbd6
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sat, 17 Apr 2021 20:25:58 +0530

Got to last dir on '~' or '/' key repeat

Diffstat:
Msrc/nnn.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git 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) {