From 66356ec7e250afc78af23022707445d967cae3a7 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Fri, 23 Dec 2016 09:25:29 +0100
Subject: [PATCH] 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>
---
 src/files.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/files.c b/src/files.c
index 55ab507b..2abda50e 100644
--- a/src/files.c
+++ b/src/files.c
@@ -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
-- 
GitLab