]> granicus.if.org Git - neomutt/commitdiff
reset to color normal before clearing to end of line when printing a message/error...
authorMichael Elkins <me@sigpipe.org>
Mon, 31 Dec 2012 22:52:22 +0000 (14:52 -0800)
committerMichael Elkins <me@sigpipe.org>
Mon, 31 Dec 2012 22:52:22 +0000 (14:52 -0800)
closes #3617

curs_lib.c

index 24af11fed3b333d2452ffdc96ff1fd6cd8962ad6..8b11bba28a827defe77f71cec5de3dd7e5b3be79 100644 (file)
@@ -320,8 +320,8 @@ static void curses_message (int error, const char *fmt, va_list ap)
       BEEP ();
     SETCOLOR (error ? MT_COLOR_ERROR : MT_COLOR_MESSAGE);
     mvaddstr (LINES-1, 0, Errorbuf);
-    clrtoeol ();
     NORMAL_COLOR;
+    clrtoeol ();
     mutt_refresh ();
   }
 
@@ -465,8 +465,8 @@ void mutt_show_error (void)
   
   SETCOLOR (option (OPTMSGERR) ? MT_COLOR_ERROR : MT_COLOR_MESSAGE);
   mvaddstr(LINES-1, 0, Errorbuf);
-  clrtoeol();
   NORMAL_COLOR;
+  clrtoeol();
 }
 
 void mutt_endwin (const char *msg)