mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Do not optimize cur on rm if in filter mode
This commit is contained in:
parent
ba088196f6
commit
8080b6dd67
|
@ -3495,7 +3495,8 @@ nochange:
|
||||||
mkpath(path, dents[cur].name, newpath);
|
mkpath(path, dents[cur].name, newpath);
|
||||||
spawn("rm", rm_opts, newpath, NULL, F_NORMAL | F_SIGINT);
|
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;
|
--cur;
|
||||||
|
|
||||||
copycurname();
|
copycurname();
|
||||||
|
|
Loading…
Reference in a new issue