Browse Source

Retain filter on single file removal

master
Arun Prakash Jana 5 years ago
parent
commit
e4b762dcc1
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/nnn.c

+ 2
- 2
src/nnn.c 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;
} }


||||||
x
 
000:0
Loading…
Cancel
Save