nnn

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

commit 8080b6dd679627186cdaeef0fa12aebbd416a682
parent ba088196f621f6df4abd4aec64ed7fd5a4cbbbf9
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Fri,  1 Feb 2019 09:12:36 +0530

Do not optimize cur on rm if in filter mode

Diffstat:
Msrc/nnn.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -3495,7 +3495,8 @@ nochange: mkpath(path, dents[cur].name, newpath); spawn("rm", rm_opts, newpath, NULL, F_NORMAL | F_SIGINT); - if (cur && access(newpath, F_OK) == -1) + /* Don't optimize cur if filtering is on */ + if (!cfg.filtermode && cur && access(newpath, F_OK) == -1) --cur; copycurname();