]> granicus.if.org Git - vim/commitdiff
patch 8.0.0686: extra redraw when using CTRL-L in second window v8.0.0686
authorBram Moolenaar <Bram@vim.org>
Wed, 28 Jun 2017 18:45:26 +0000 (20:45 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 28 Jun 2017 18:45:26 +0000 (20:45 +0200)
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().

src/screen.c
src/version.c

index 3b281a89423e5058867bfa185e7235959036cbdf..f047534e89847745cde3eb37018cb8baf4bfd4a3 100644 (file)
@@ -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) */
index d595256fab1d94f35c062c382bed97a8c87200dc..e659f8cfa9e31619a1f5334542d55a0fb6f36672 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    686,
 /**/
     685,
 /**/