Skip to content

Commit cd90767

Browse files
committed
updated for version 7.4a.034
Problem: The tabline may flicker when opening a new tab after 7.3.759 on Win32. Solution: Move call to TabCtrl_SetCurSel(). (Ken Takata)
1 parent d08f0a4 commit cd90767

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/gui_w48.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2529,13 +2529,13 @@ gui_mch_update_tabline(void)
25292529
while (nr < TabCtrl_GetItemCount(s_tabhwnd))
25302530
TabCtrl_DeleteItem(s_tabhwnd, nr);
25312531

2532-
if (TabCtrl_GetCurSel(s_tabhwnd) != curtabidx)
2533-
TabCtrl_SetCurSel(s_tabhwnd, curtabidx);
2534-
25352532
/* Re-enable redraw and redraw. */
25362533
SendMessage(s_tabhwnd, WM_SETREDRAW, (WPARAM)TRUE, 0);
25372534
RedrawWindow(s_tabhwnd, NULL, NULL,
25382535
RDW_ERASE | RDW_FRAME | RDW_INVALIDATE | RDW_ALLCHILDREN);
2536+
2537+
if (TabCtrl_GetCurSel(s_tabhwnd) != curtabidx)
2538+
TabCtrl_SetCurSel(s_tabhwnd, curtabidx);
25392539
}
25402540

25412541
/*
@@ -2548,8 +2548,8 @@ gui_mch_set_curtab(nr)
25482548
if (s_tabhwnd == NULL)
25492549
return;
25502550

2551-
if (TabCtrl_GetCurSel(s_tabhwnd) != nr -1)
2552-
TabCtrl_SetCurSel(s_tabhwnd, nr -1);
2551+
if (TabCtrl_GetCurSel(s_tabhwnd) != nr - 1)
2552+
TabCtrl_SetCurSel(s_tabhwnd, nr - 1);
25532553
}
25542554

25552555
#endif

src/version.c

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

728728
static int included_patches[] =
729729
{ /* Add new patch number below this line */
730+
/**/
731+
34,
730732
/**/
731733
33,
732734
/**/

0 commit comments

Comments
 (0)