0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.3.1292

Problem:    Possibly using invalid pointer when searcing for window. (Raichoo)
Solution:   Use "firstwin" instead of "tp_firstwin" for current tab.
This commit is contained in:
Bram Moolenaar 2013-07-03 14:01:56 +02:00
parent e1fc4e2f0f
commit 5e6d5ca16c
2 changed files with 4 additions and 1 deletions

View File

@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1292,
/**/
1291,
/**/

View File

@ -4077,7 +4077,8 @@ win_find_tabpage(win)
tabpage_T *tp;
for (tp = first_tabpage; tp != NULL; tp = tp->tp_next)
for (wp = tp->tp_firstwin; wp != NULL; wp = wp->w_next)
for (wp = (tp == curtab ? firstwin : tp->tp_firstwin);
wp != NULL; wp = wp->w_next)
if (wp == win)
return tp;
return NULL;