|
Karsten Hopp |
652f5e |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
652f5e |
Subject: Patch 7.3.759
|
|
Karsten Hopp |
652f5e |
Fcc: outbox
|
|
Karsten Hopp |
652f5e |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
652f5e |
Mime-Version: 1.0
|
|
Karsten Hopp |
652f5e |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
652f5e |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
652f5e |
------------
|
|
Karsten Hopp |
652f5e |
|
|
Karsten Hopp |
652f5e |
Patch 7.3.759
|
|
Karsten Hopp |
652f5e |
Problem: MS-Windows: Updating the tabline is slow when there are many tabs.
|
|
Karsten Hopp |
652f5e |
Solution: Disable redrawing while performing the update. (Arseny Kapoulkine)
|
|
Karsten Hopp |
652f5e |
Files: src/gui_w48.c
|
|
Karsten Hopp |
652f5e |
|
|
Karsten Hopp |
652f5e |
|
|
Karsten Hopp |
652f5e |
*** ../vim-7.3.758/src/gui_w48.c 2012-11-20 16:53:34.000000000 +0100
|
|
Karsten Hopp |
652f5e |
--- src/gui_w48.c 2012-12-12 17:10:21.000000000 +0100
|
|
Karsten Hopp |
652f5e |
***************
|
|
Karsten Hopp |
652f5e |
*** 2452,2458 ****
|
|
Karsten Hopp |
652f5e |
TCITEM tie;
|
|
Karsten Hopp |
652f5e |
int nr = 0;
|
|
Karsten Hopp |
652f5e |
int curtabidx = 0;
|
|
Karsten Hopp |
652f5e |
- RECT rc;
|
|
Karsten Hopp |
652f5e |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
652f5e |
static int use_unicode = FALSE;
|
|
Karsten Hopp |
652f5e |
int uu;
|
|
Karsten Hopp |
652f5e |
--- 2452,2457 ----
|
|
Karsten Hopp |
652f5e |
***************
|
|
Karsten Hopp |
652f5e |
*** 2479,2491 ****
|
|
Karsten Hopp |
652f5e |
tie.mask = TCIF_TEXT;
|
|
Karsten Hopp |
652f5e |
tie.iImage = -1;
|
|
Karsten Hopp |
652f5e |
|
|
Karsten Hopp |
652f5e |
/* Add a label for each tab page. They all contain the same text area. */
|
|
Karsten Hopp |
652f5e |
for (tp = first_tabpage; tp != NULL; tp = tp->tp_next, ++nr)
|
|
Karsten Hopp |
652f5e |
{
|
|
Karsten Hopp |
652f5e |
if (tp == curtab)
|
|
Karsten Hopp |
652f5e |
curtabidx = nr;
|
|
Karsten Hopp |
652f5e |
|
|
Karsten Hopp |
652f5e |
! if (!TabCtrl_GetItemRect(s_tabhwnd, nr, &rc))
|
|
Karsten Hopp |
652f5e |
{
|
|
Karsten Hopp |
652f5e |
/* Add the tab */
|
|
Karsten Hopp |
652f5e |
tie.pszText = "-Empty-";
|
|
Karsten Hopp |
652f5e |
--- 2478,2493 ----
|
|
Karsten Hopp |
652f5e |
tie.mask = TCIF_TEXT;
|
|
Karsten Hopp |
652f5e |
tie.iImage = -1;
|
|
Karsten Hopp |
652f5e |
|
|
Karsten Hopp |
652f5e |
+ /* Disable redraw for tab updates to eliminate O(N^2) draws. */
|
|
Karsten Hopp |
652f5e |
+ SendMessage(s_tabhwnd, WM_SETREDRAW, (WPARAM)FALSE, 0);
|
|
Karsten Hopp |
652f5e |
+
|
|
Karsten Hopp |
652f5e |
/* Add a label for each tab page. They all contain the same text area. */
|
|
Karsten Hopp |
652f5e |
for (tp = first_tabpage; tp != NULL; tp = tp->tp_next, ++nr)
|
|
Karsten Hopp |
652f5e |
{
|
|
Karsten Hopp |
652f5e |
if (tp == curtab)
|
|
Karsten Hopp |
652f5e |
curtabidx = nr;
|
|
Karsten Hopp |
652f5e |
|
|
Karsten Hopp |
652f5e |
! if (nr >= TabCtrl_GetItemCount(s_tabhwnd))
|
|
Karsten Hopp |
652f5e |
{
|
|
Karsten Hopp |
652f5e |
/* Add the tab */
|
|
Karsten Hopp |
652f5e |
tie.pszText = "-Empty-";
|
|
Karsten Hopp |
652f5e |
***************
|
|
Karsten Hopp |
652f5e |
*** 2519,2529 ****
|
|
Karsten Hopp |
652f5e |
}
|
|
Karsten Hopp |
652f5e |
|
|
Karsten Hopp |
652f5e |
/* Remove any old labels. */
|
|
Karsten Hopp |
652f5e |
! while (TabCtrl_GetItemRect(s_tabhwnd, nr, &rc))
|
|
Karsten Hopp |
652f5e |
TabCtrl_DeleteItem(s_tabhwnd, nr);
|
|
Karsten Hopp |
652f5e |
|
|
Karsten Hopp |
652f5e |
if (TabCtrl_GetCurSel(s_tabhwnd) != curtabidx)
|
|
Karsten Hopp |
652f5e |
TabCtrl_SetCurSel(s_tabhwnd, curtabidx);
|
|
Karsten Hopp |
652f5e |
}
|
|
Karsten Hopp |
652f5e |
|
|
Karsten Hopp |
652f5e |
/*
|
|
Karsten Hopp |
652f5e |
--- 2521,2534 ----
|
|
Karsten Hopp |
652f5e |
}
|
|
Karsten Hopp |
652f5e |
|
|
Karsten Hopp |
652f5e |
/* Remove any old labels. */
|
|
Karsten Hopp |
652f5e |
! while (nr < TabCtrl_GetItemCount(s_tabhwnd))
|
|
Karsten Hopp |
652f5e |
TabCtrl_DeleteItem(s_tabhwnd, nr);
|
|
Karsten Hopp |
652f5e |
|
|
Karsten Hopp |
652f5e |
if (TabCtrl_GetCurSel(s_tabhwnd) != curtabidx)
|
|
Karsten Hopp |
652f5e |
TabCtrl_SetCurSel(s_tabhwnd, curtabidx);
|
|
Karsten Hopp |
652f5e |
+
|
|
Karsten Hopp |
652f5e |
+ /* Re-enable redraw. This should trigger a repaint. */
|
|
Karsten Hopp |
652f5e |
+ SendMessage(s_tabhwnd, WM_SETREDRAW, (WPARAM)TRUE, 0);
|
|
Karsten Hopp |
652f5e |
}
|
|
Karsten Hopp |
652f5e |
|
|
Karsten Hopp |
652f5e |
/*
|
|
Karsten Hopp |
652f5e |
*** ../vim-7.3.758/src/version.c 2012-12-12 16:43:52.000000000 +0100
|
|
Karsten Hopp |
652f5e |
--- src/version.c 2012-12-12 17:10:46.000000000 +0100
|
|
Karsten Hopp |
652f5e |
***************
|
|
Karsten Hopp |
652f5e |
*** 727,728 ****
|
|
Karsten Hopp |
652f5e |
--- 727,730 ----
|
|
Karsten Hopp |
652f5e |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
652f5e |
+ /**/
|
|
Karsten Hopp |
652f5e |
+ 759,
|
|
Karsten Hopp |
652f5e |
/**/
|
|
Karsten Hopp |
652f5e |
|
|
Karsten Hopp |
652f5e |
--
|
|
Karsten Hopp |
652f5e |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
652f5e |
148. You find it easier to dial-up the National Weather Service
|
|
Karsten Hopp |
652f5e |
Weather/your_town/now.html than to simply look out the window.
|
|
Karsten Hopp |
652f5e |
|
|
Karsten Hopp |
652f5e |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
652f5e |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
652f5e |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
652f5e |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|