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: neomutt-20160307~172 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12358afdbfbf69190ee657d4e145d8ae2b9c681d;p=neomutt 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 3beb0e30e..5a294c99b 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) {