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