Fix filterfn not in sync with cfg.regex

This commit is contained in:
Arun Prakash Jana 2020-05-24 01:51:59 +05:30
parent 3527f68554
commit c1f88d00ff
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -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;
} }