mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Fix filterfn not in sync with cfg.regex
This commit is contained in:
parent
3527f68554
commit
c1f88d00ff
1 changed files with 1 additions and 1 deletions
|
@ -2638,7 +2638,7 @@ static int filterentries(char *path, char *lastname)
|
||||||
ln[0] = (ln[0] == FILTER) ? RFILTER : FILTER;
|
ln[0] = (ln[0] == FILTER) ? RFILTER : FILTER;
|
||||||
wln[0] = (uchar)ln[0];
|
wln[0] = (uchar)ln[0];
|
||||||
cfg.regex ^= 1;
|
cfg.regex ^= 1;
|
||||||
filterfn = (filterfn == &visible_str) ? &visible_re : &visible_str;
|
filterfn = cfg.regex ? &visible_re : &visible_str;
|
||||||
showfilter(ln);
|
showfilter(ln);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue