mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Retain filter on single file removal
This commit is contained in:
parent
9d9aa16185
commit
e4b762dcc1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue