From e4b762dcc10d3b63f907b817ab9a87be2bb6f7c7 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Tue, 7 Jan 2020 18:28:30 +0530 Subject: Retain filter on single file removal --- src/nnn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2