Mercurial > vim
diff src/popupwin.c @ 18229:e6c83ae0c4d0 v8.1.2109
patch 8.1.2109: popup_getoptions() hangs with tab-local popup
Commit: https://github.com/vim/vim/commit/1824f45883ef7cc236d2bba89811989a1ccb853c
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 2 23:06:46 2019 +0200
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 https://github.com/vim/vim/issues/5006)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 02 Oct 2019 23:15:03 +0200 |
parents | 6c3a8312486d |
children | 9e696b8fee7d |
line wrap: on
line diff
--- a/src/popupwin.c +++ b/src/popupwin.c @@ -2636,12 +2636,12 @@ f_popup_getoptions(typval_T *argvars, ty i = 1; FOR_ALL_TABPAGES(tp) { - win_T *p; - - for (p = tp->tp_first_popupwin; p != NULL; p = wp->w_next) - if (p->w_id == id) + win_T *twp; + + 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; }