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
1 changed files with 2 additions and 1 deletions

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