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:
parent
e1fc4e2f0f
commit
5e6d5ca16c
@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1292,
|
||||||
/**/
|
/**/
|
||||||
1291,
|
1291,
|
||||||
/**/
|
/**/
|
||||||
|
@ -4077,7 +4077,8 @@ win_find_tabpage(win)
|
|||||||
tabpage_T *tp;
|
tabpage_T *tp;
|
||||||
|
|
||||||
for (tp = first_tabpage; tp != NULL; tp = tp->tp_next)
|
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)
|
if (wp == win)
|
||||||
return tp;
|
return tp;
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user