nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 66356ec7e250afc78af23022707445d967cae3a7
parent 4edc83c3c2f9f8ebb048d243c381339bb9dac5ae
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Fri, 23 Dec 2016 09:25:29 +0100

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>

Diffstat:
Msrc/files.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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