changeset 11607:24664144de4e v8.0.0686

patch 8.0.0686: extra redraw when using CTRL-L in second window commit https://github.com/vim/vim/commit/9f5f7bf4d5f757ef885acf74ce03c25429a328aa Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 28 20:45:26 2017 +0200 patch 8.0.0686: extra redraw when using CTRL-L in second window Problem: When typing CTRL-L in a window that's not the first one, another redraw will happen later. (Christian Brabandt) Solution: Reset must_redraw after calling screenclear().
author Christian Brabandt <cb@256bit.org>
date Wed, 28 Jun 2017 21:00:03 +0200
parents 8a62662634fb
children bc935094dcdb
files src/screen.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -648,6 +648,8 @@ update_screen(int type_arg)
     {
 	screenclear();		/* will reset clear_cmdline */
 	type = NOT_VALID;
+	/* must_redraw may be set indirectly, avoid another redraw later */
+	must_redraw = 0;
     }
 
     if (clear_cmdline)		/* going to clear cmdline (done below) */
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    686,
+/**/
     685,
 /**/
     684,