|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
To: vim-dev@vim.org
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
Subject: Patch 7.2.305
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
Fcc: outbox
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
Mime-Version: 1.0
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
Content-Type: text/plain; charset=UTF-8
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
Content-Transfer-Encoding: 8bit
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
------------
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
Patch 7.2.305
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
Problem: Recursively redrawing causes a memory leak. (Dominique Pelle)
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
Solution: Disallow recursive screen updating.
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
Files: src/screen.c
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
*** ../vim-7.2.304/src/screen.c 2009-11-11 17:07:25.000000000 +0100
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
--- src/screen.c 2009-11-17 16:30:53.000000000 +0100
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
***************
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
*** 323,328 ****
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
--- 323,329 ----
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
int did_one;
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
#endif
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
+ /* Don't do anything if the screen structures are (not yet) valid. */
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
if (!screen_valid(TRUE))
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
return;
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
***************
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
*** 342,348 ****
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
if (curwin->w_lines_valid == 0 && type < NOT_VALID)
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
type = NOT_VALID;
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
! if (!redrawing())
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
{
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
redraw_later(type); /* remember type for next time */
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
must_redraw = type;
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
--- 343,351 ----
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
if (curwin->w_lines_valid == 0 && type < NOT_VALID)
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
type = NOT_VALID;
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
! /* Postpone the redrawing when it's not needed and when being called
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
! * recursively. */
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
! if (!redrawing() || updating_screen)
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
{
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
redraw_later(type); /* remember type for next time */
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
must_redraw = type;
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
***************
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
*** 582,587 ****
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
--- 585,591 ----
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
/*
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
* Prepare for updating one or more windows.
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
+ * Caller must check for "updating_screen" already set to avoid recursiveness.
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
*/
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
static void
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
update_prepare()
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
***************
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
*** 663,669 ****
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
doit = TRUE;
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
}
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
! if (!doit)
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
return;
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
/* update all windows that need updating */
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
--- 667,675 ----
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
doit = TRUE;
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
}
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
! /* Return when there is nothing to do or screen updating already
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
! * happening. */
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
! if (!doit || updating_screen)
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
return;
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
/* update all windows that need updating */
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
***************
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
*** 696,701 ****
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
--- 702,711 ----
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
updateWindow(wp)
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
win_T *wp;
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
{
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
+ /* return if already busy updating */
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
+ if (updating_screen)
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
+ return;
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
+
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
update_prepare();
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
#ifdef FEAT_CLIPBOARD
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
*** ../vim-7.2.304/src/version.c 2009-11-25 12:38:49.000000000 +0100
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
--- src/version.c 2009-11-25 13:01:48.000000000 +0100
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
***************
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
*** 683,684 ****
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
--- 683,686 ----
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
{ /* Add new patch number below this line */
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
+ /**/
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
+ 305,
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
/**/
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
--
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
If the Universe is constantly expanding, why can't I ever find a parking space?
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
![](https://seccdn.libravatar.org/avatar/d9c2329ed86b5a3d16b53832d4e0af08aeacef0449836318546ae137799e4323?s=16&d=retro) |
23bda8d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|