mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-13 11:54:37 +03:00
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:
parent
4edc83c3c2
commit
66356ec7e2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user