Skip to content

Commit 9f5f7bf

Browse files
committed
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().
1 parent e6bf655 commit 9f5f7bf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/screen.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,8 @@ update_screen(int type_arg)
648648
{
649649
screenclear(); /* will reset clear_cmdline */
650650
type = NOT_VALID;
651+
/* must_redraw may be set indirectly, avoid another redraw later */
652+
must_redraw = 0;
651653
}
652654

653655
if (clear_cmdline) /* going to clear cmdline (done below) */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
686,
767769
/**/
768770
685,
769771
/**/

0 commit comments

Comments
 (0)