|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.118
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.118
|
|
|
22c937 |
Problem: It's possible that redrawing the status lines causes
|
|
|
22c937 |
win_redr_custom() to be called recursively.
|
|
|
22c937 |
Solution: Protect against recursiveness. (Yasuhiro Matsumoto)
|
|
|
22c937 |
Files: src/screen.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.117/src/screen.c 2013-11-08 04:30:06.000000000 +0100
|
|
|
22c937 |
--- src/screen.c 2013-12-11 15:32:21.000000000 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 6653,6658 ****
|
|
|
22c937 |
--- 6653,6659 ----
|
|
|
22c937 |
win_T *wp;
|
|
|
22c937 |
int draw_ruler; /* TRUE or FALSE */
|
|
|
22c937 |
{
|
|
|
22c937 |
+ static int entered = FALSE;
|
|
|
22c937 |
int attr;
|
|
|
22c937 |
int curattr;
|
|
|
22c937 |
int row;
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 6671,6676 ****
|
|
|
22c937 |
--- 6672,6684 ----
|
|
|
22c937 |
win_T *ewp;
|
|
|
22c937 |
int p_crb_save;
|
|
|
22c937 |
|
|
|
22c937 |
+ /* There is a tiny chance that this gets called recursively: When
|
|
|
22c937 |
+ * redrawing a status line triggers redrawing the ruler or tabline.
|
|
|
22c937 |
+ * Avoid trouble by not allowing recursion. */
|
|
|
22c937 |
+ if (entered)
|
|
|
22c937 |
+ return;
|
|
|
22c937 |
+ entered = TRUE;
|
|
|
22c937 |
+
|
|
|
22c937 |
/* setup environment for the task at hand */
|
|
|
22c937 |
if (wp == NULL)
|
|
|
22c937 |
{
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 6746,6752 ****
|
|
|
22c937 |
}
|
|
|
22c937 |
|
|
|
22c937 |
if (maxwidth <= 0)
|
|
|
22c937 |
! return;
|
|
|
22c937 |
|
|
|
22c937 |
/* Temporarily reset 'cursorbind', we don't want a side effect from moving
|
|
|
22c937 |
* the cursor away and back. */
|
|
|
22c937 |
--- 6754,6760 ----
|
|
|
22c937 |
}
|
|
|
22c937 |
|
|
|
22c937 |
if (maxwidth <= 0)
|
|
|
22c937 |
! goto theend;
|
|
|
22c937 |
|
|
|
22c937 |
/* Temporarily reset 'cursorbind', we don't want a side effect from moving
|
|
|
22c937 |
* the cursor away and back. */
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 6827,6832 ****
|
|
|
22c937 |
--- 6835,6843 ----
|
|
|
22c937 |
while (col < Columns)
|
|
|
22c937 |
TabPageIdxs[col++] = fillchar;
|
|
|
22c937 |
}
|
|
|
22c937 |
+
|
|
|
22c937 |
+ theend:
|
|
|
22c937 |
+ entered = FALSE;
|
|
|
22c937 |
}
|
|
|
22c937 |
|
|
|
22c937 |
#endif /* FEAT_STL_OPT */
|
|
|
22c937 |
*** ../vim-7.4.117/src/version.c 2013-12-11 15:06:36.000000000 +0100
|
|
|
22c937 |
--- src/version.c 2013-12-11 15:32:16.000000000 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 740,741 ****
|
|
|
22c937 |
--- 740,743 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 118,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
Nothing is fool-proof to a sufficiently talented fool.
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|