mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Make setfilter() regexes case-insensitive
This commit is contained in:
parent
2ab57e7799
commit
b9cac3a190
2
noice.c
2
noice.c
|
@ -211,7 +211,7 @@ setfilter(regex_t *regex, char *filter)
|
|||
char *errbuf;
|
||||
int r;
|
||||
|
||||
r = regcomp(regex, filter, REG_NOSUB | REG_EXTENDED);
|
||||
r = regcomp(regex, filter, REG_NOSUB | REG_EXTENDED | REG_ICASE);
|
||||
if (r != 0) {
|
||||
errbuf = xmalloc(COLS * sizeof(char));
|
||||
regerror(r, regex, errbuf, COLS * sizeof(char));
|
||||
|
|
Loading…
Reference in a new issue