Retain filter on single file removal

This commit is contained in:
Arun Prakash Jana 2020-01-07 18:28:30 +05:30
parent 9d9aa16185
commit e4b762dcc1
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -5071,14 +5071,14 @@ nochange:
mkpath(path, dents[cur].name, newpath); mkpath(path, dents[cur].name, newpath);
xrm(newpath); xrm(newpath);
/* Don't optimize cur if filtering is on */
if (cur && access(newpath, F_OK) == -1) if (cur && access(newpath, F_OK) == -1)
move_cursor(cur - 1, 0); move_cursor(cur - 1, 0);
/* We reduce cur only if it is > 0, so it's at least 0 */ /* We reduce cur only if it is > 0, so it's at least 0 */
copycurname(); copycurname();
clearfilter(); if (cfg.filtermode)
presel = FILTER;
goto begin; goto begin;
} }