From: Richard Russon Date: Thu, 15 Feb 2018 15:44:13 +0000 (+0000) Subject: fix regexes using '\!' (not) (#1062) X-Git-Tag: neomutt-20180223~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f727544f9a0173bec7caadc672f367d528072b6;p=neomutt fix regexes using '\!' (not) (#1062) The flag, in struct Option, allowing a regex to use a '!' (not) is part of the type, not the flags field. --- diff --git a/init.c b/init.c index cd518c617..bb32fb89c 100644 --- a/init.c +++ b/init.c @@ -183,7 +183,7 @@ static int parse_regex(int idx, struct Buffer *tmp, struct Buffer *err) return 0; } - struct Regex *rnew = mutt_regex_create(tmp->data, MuttVars[idx].flags, err); + struct Regex *rnew = mutt_regex_create(tmp->data, MuttVars[idx].type, err); if (!rnew) return 1; @@ -1945,7 +1945,7 @@ static void restore_default(struct Option *p) if (*ptr) mutt_regex_free(ptr); - *ptr = mutt_regex_create((const char *) p->initial, p->flags, NULL); + *ptr = mutt_regex_create((const char *) p->initial, p->type, NULL); break; } }