aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-07 18:28:30 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-07 18:28:30 +0530
commite4b762dcc10d3b63f907b817ab9a87be2bb6f7c7 (patch)
tree568a61948f42c431125c3dd88a9d0cc2a3ccacdd /src
parent9d9aa161856aa5aee45959b0cd16f0fb590bbc11 (diff)
downloadnnn-e4b762dcc10d3b63f907b817ab9a87be2bb6f7c7.tar.gz
Retain filter on single file removal
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index ea2a819..035918c 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5071,14 +5071,14 @@ nochange:
mkpath(path, dents[cur].name, newpath);
xrm(newpath);
- /* Don't optimize cur if filtering is on */
if (cur && access(newpath, F_OK) == -1)
move_cursor(cur - 1, 0);
/* We reduce cur only if it is > 0, so it's at least 0 */
copycurname();
- clearfilter();
+ if (cfg.filtermode)
+ presel = FILTER;
goto begin;
}