From 2f727544f9a0173bec7caadc672f367d528072b6 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Thu, 15 Feb 2018 15:44:13 +0000 Subject: [PATCH] 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. --- init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.50.1