diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-02 23:06:46 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-02 23:06:46 +0200 |
commit | 1824f45883ef7cc236d2bba89811989a1ccb853c (patch) | |
tree | fc0547cbda7308aa2878abfefb23a6890a1cf850 /src/popupwin.c | |
parent | 23324a0b35d18c5caac20b1d543ed2d1f762f5b5 (diff) | |
download | vim-git-1824f45883ef7cc236d2bba89811989a1ccb853c.tar.gz |
patch 8.1.2109: popup_getoptions() hangs with tab-local popupv8.1.2109
Problem: popup_getoptions() hangs with tab-local popup.
Solution: Correct pointer name. (Marko Mahnič, closes #5006)
Diffstat (limited to 'src/popupwin.c')
-rw-r--r-- | src/popupwin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/popupwin.c b/src/popupwin.c index a77d98b67..06812073e 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -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; } |