From: Pietro Cerutti Date: Thu, 24 Nov 2016 23:06:53 +0000 (+0000) Subject: fix: status color breaks "mutt -D" X-Git-Tag: neomutt-20170113~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce67e1809f1de3bef36dd81759cee1d22f3f45b2;p=neomutt fix: status color breaks "mutt -D" "mutt -D" gets confused when it reads config for the status-color feature. Let _mutt_parse_color fake a whole-line parsing when dry-running Fixes: #235 --- diff --git a/color.c b/color.c index e16e29c6f..79b5b3446 100644 --- a/color.c +++ b/color.c @@ -812,7 +812,11 @@ _mutt_parse_color (BUFFER *buf, BUFFER *s, BUFFER *err, /* dry run? */ - if(dry_run) return 0; + if(dry_run) + { + *s->dptr = '\0'; /* fake that we're done parsing */ + return 0; + } #ifdef HAVE_COLOR