mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fix filterfn not in sync with cfg.regex
This commit is contained in:
parent
3527f68554
commit
c1f88d00ff
|
@ -2638,7 +2638,7 @@ static int filterentries(char *path, char *lastname)
|
|||
ln[0] = (ln[0] == FILTER) ? RFILTER : FILTER;
|
||||
wln[0] = (uchar)ln[0];
|
||||
cfg.regex ^= 1;
|
||||
filterfn = (filterfn == &visible_str) ? &visible_re : &visible_str;
|
||||
filterfn = cfg.regex ? &visible_re : &visible_str;
|
||||
showfilter(ln);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue