From: Thomas Roessler Date: Wed, 4 Jun 2003 14:01:39 +0000 (+0000) Subject: Don't colorize empty lines generated with state_attach_puts(); X-Git-Tag: pre-type-punning-patch~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aeac0362e4657169b2959560e0d691aaaeaa3b25;p=mutt Don't colorize empty lines generated with state_attach_puts(); --- diff --git a/muttlib.c b/muttlib.c index 1e902dec..05d80c21 100644 --- a/muttlib.c +++ b/muttlib.c @@ -1218,12 +1218,12 @@ void state_mark_attach (STATE *s) void state_attach_puts (const char *t, STATE *s) { - state_mark_attach (s); + if (*t != '\n') state_mark_attach (s); while (*t) { state_putc (*t, s); if (*t++ == '\n' && *t) - state_mark_attach (s); + if (*t != '\n') state_mark_attach (s); } }