Do not optimize cur on rm if in filter mode

This commit is contained in:
Arun Prakash Jana 2019-02-01 09:12:36 +05:30
parent ba088196f6
commit 8080b6dd67
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -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();