Problem: Possibly using invalid pointer when searcing for window. (Raichoo)
Solution: Use "firstwin" instead of "tp_firstwin" for current tab.
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1292,
/**/
1291,
/**/
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;