]> granicus.if.org Git - mutt/commitdiff
explicitly call mutt_refresh() prior to endwin() to force a screen redraw.
authorMichael Elkins <me@sigpipe.org>
Fri, 8 Feb 2013 17:06:31 +0000 (17:06 +0000)
committerMichael Elkins <me@sigpipe.org>
Fri, 8 Feb 2013 17:06:31 +0000 (17:06 +0000)
[4903e80356d3] removed the call, but some environments (screen+xterm under
SuSE11/12) don't properly flush without it prior to the endwin() call

curs_lib.c

index 3beb0e30eacfb023f7ff648a51724f49f5f5b40b..5a294c99b4b70e7814c7c2bf0e48290fcc33c927 100644 (file)
@@ -477,7 +477,13 @@ void mutt_endwin (const char *msg)
   int e = errno;
 
   if (!option (OPTNOCURSES))
+  {
+    /* at least in some situations (screen + xterm under SuSE11/12) endwin()
+     * doesn't properly flush the screen without an explicit call.
+     */
+    mutt_refresh();
     endwin ();
+  }
   
   if (msg && *msg)
   {