From: Richard Russon Date: Mon, 1 Jan 2018 12:07:48 +0000 (+0000) Subject: fix regex parsing X-Git-Tag: neomutt-20180223~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43a4a6b666520e910a7ff5cfba168ca57f685c41;p=neomutt fix regex parsing --- diff --git a/init.c b/init.c index c7602036e..14d16fb86 100644 --- a/init.c +++ b/init.c @@ -178,7 +178,7 @@ static int parse_regex(int idx, struct Buffer *tmp, struct Buffer *err) if (ptr) { /* Same pattern as we already have */ - if (mutt_str_strcmp(ptr->pattern, tmp->data) != 0) + if (mutt_str_strcmp(ptr->pattern, tmp->data) == 0) return 0; } else