]> granicus.if.org Git - neomutt/commitdiff
Don't colorize empty lines generated with state_attach_puts();
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 4 Jun 2003 14:01:39 +0000 (14:01 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 4 Jun 2003 14:01:39 +0000 (14:01 +0000)
muttlib.c

index 1e902dec2475526346f926ff28ee87b75e17faf0..05d80c21aecfdaaa3434951f87afbc92f3ba3a30 100644 (file)
--- 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);
   }
 }