From: Michael Elkins Date: Fri, 8 Feb 2013 17:06:31 +0000 (+0000) Subject: explicitly call mutt_refresh() prior to endwin() to force a screen redraw. X-Git-Tag: mutt-1-5-22-rel~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f44eb9c88e99f54dd41de9b7d472981495ddcc00;p=mutt explicitly call mutt_refresh() prior to endwin() to force a screen redraw. [4903e80356d3] removed the call, but some environments (screen+xterm under SuSE11/12) don't properly flush without it prior to the endwin() call --- diff --git a/curs_lib.c b/curs_lib.c index 3beb0e30..5a294c99 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -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) {