screen: draw new content immediately, to prevent color flashes

After updating the color palette, the corresponding new window content
should be drawn immediately, before some other part of the code calls
doupdate(), to prevent the old content being shown in the new colors.

This fixes https://savannah.gnu.org/bugs/?49912.
Reported-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Benno Schulenberg 2016-12-23 09:25:29 +01:00
parent 4edc83c3c2
commit 66356ec7e2

View File

@ -563,7 +563,8 @@ void display_buffer(void)
precalc_multicolorinfo();
#endif
refresh_needed = TRUE;
/* Update the content of the edit window straightaway. */
edit_refresh();
}
#ifndef DISABLE_MULTIBUFFER