nnn

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

commit 31c15dcdcaf56a5cbe454c8080c01ea6991ec908
parent 55abe4f76e41a398ba6c103c0939d7b16c52e86e
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Mon, 10 Dec 2018 00:09:05 +0530

On entry delete move to previous file

Diffstat:
Msrc/nnn.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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;