Mercurial > vim
comparison src/gui_w48.c @ 5216:947edb6335d1 v7.4a.034
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 17 Jul 2013 21:59:13 +0200 |
parents | 467efeee8f9e |
children | 91d478da863e |
comparison
equal
deleted
inserted
replaced
5215:1fc46440aa1c | 5216:947edb6335d1 |
---|---|
2527 | 2527 |
2528 /* Remove any old labels. */ | 2528 /* Remove any old labels. */ |
2529 while (nr < TabCtrl_GetItemCount(s_tabhwnd)) | 2529 while (nr < TabCtrl_GetItemCount(s_tabhwnd)) |
2530 TabCtrl_DeleteItem(s_tabhwnd, nr); | 2530 TabCtrl_DeleteItem(s_tabhwnd, nr); |
2531 | 2531 |
2532 if (TabCtrl_GetCurSel(s_tabhwnd) != curtabidx) | |
2533 TabCtrl_SetCurSel(s_tabhwnd, curtabidx); | |
2534 | |
2535 /* Re-enable redraw and redraw. */ | 2532 /* Re-enable redraw and redraw. */ |
2536 SendMessage(s_tabhwnd, WM_SETREDRAW, (WPARAM)TRUE, 0); | 2533 SendMessage(s_tabhwnd, WM_SETREDRAW, (WPARAM)TRUE, 0); |
2537 RedrawWindow(s_tabhwnd, NULL, NULL, | 2534 RedrawWindow(s_tabhwnd, NULL, NULL, |
2538 RDW_ERASE | RDW_FRAME | RDW_INVALIDATE | RDW_ALLCHILDREN); | 2535 RDW_ERASE | RDW_FRAME | RDW_INVALIDATE | RDW_ALLCHILDREN); |
2536 | |
2537 if (TabCtrl_GetCurSel(s_tabhwnd) != curtabidx) | |
2538 TabCtrl_SetCurSel(s_tabhwnd, curtabidx); | |
2539 } | 2539 } |
2540 | 2540 |
2541 /* | 2541 /* |
2542 * Set the current tab to "nr". First tab is 1. | 2542 * Set the current tab to "nr". First tab is 1. |
2543 */ | 2543 */ |
2546 int nr; | 2546 int nr; |
2547 { | 2547 { |
2548 if (s_tabhwnd == NULL) | 2548 if (s_tabhwnd == NULL) |
2549 return; | 2549 return; |
2550 | 2550 |
2551 if (TabCtrl_GetCurSel(s_tabhwnd) != nr -1) | 2551 if (TabCtrl_GetCurSel(s_tabhwnd) != nr - 1) |
2552 TabCtrl_SetCurSel(s_tabhwnd, nr -1); | 2552 TabCtrl_SetCurSel(s_tabhwnd, nr - 1); |
2553 } | 2553 } |
2554 | 2554 |
2555 #endif | 2555 #endif |
2556 | 2556 |
2557 /* | 2557 /* |