From ce67e1809f1de3bef36dd81759cee1d22f3f45b2 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Thu, 24 Nov 2016 23:06:53 +0000 Subject: [PATCH] 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 --- color.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.50.1