# HG changeset patch # User Bram Moolenaar # Date 1372852916 -7200 # Node ID cad8d29b0bc0356a49a455296e5e79eb6f38139d # Parent 8815a81fa78c67778d06e985967a4e53c5da33d8 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. diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1292, +/**/ 1291, /**/ 1290, diff --git a/src/window.c b/src/window.c --- a/src/window.c +++ b/src/window.c @@ -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;