From: Arun Prakash Jana Date: Sun, 9 Dec 2018 18:39:05 +0000 (+0530) Subject: On entry delete move to previous file X-Git-Tag: v2.2~26 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=31c15dcdcaf56a5cbe454c8080c01ea6991ec908;p=nnn.git On entry delete move to previous file --- diff --git a/src/nnn.c b/src/nnn.c index f79a1bd4..7706eeff 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3199,7 +3199,11 @@ nochange: mkpath(path, dents[cur].name, newpath, PATH_MAX); spawn("rm", rm_opts, newpath, NULL, F_NORMAL | F_SIGINT); + if (cur && access(newpath, F_OK) == -1) + --cur; + copycurname(); + if (cfg.filtermode) presel = FILTER; goto begin;