1
0
forked from aniani/vim

patch 8.1.2109: popup_getoptions() hangs with tab-local popup

Problem:    popup_getoptions() hangs with tab-local popup.
Solution:   Correct pointer name. (Marko Mahnič, closes #5006)
This commit is contained in:
Bram Moolenaar
2019-10-02 23:06:46 +02:00
parent 23324a0b35
commit 1824f45883
3 changed files with 18 additions and 4 deletions

View File

@@ -2636,12 +2636,12 @@ f_popup_getoptions(typval_T *argvars, typval_T *rettv)
i = 1;
FOR_ALL_TABPAGES(tp)
{
win_T *p;
win_T *twp;
for (p = tp->tp_first_popupwin; p != NULL; p = wp->w_next)
if (p->w_id == id)
for (twp = tp->tp_first_popupwin; twp != NULL; twp = twp->w_next)
if (twp->w_id == id)
break;
if (p != NULL)
if (twp != NULL)
break;
++i;
}