comparison 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
comparison
equal deleted inserted replaced
18228:228e73d84c32 18229:e6c83ae0c4d0
2634 2634
2635 // find the tabpage that holds this popup 2635 // find the tabpage that holds this popup
2636 i = 1; 2636 i = 1;
2637 FOR_ALL_TABPAGES(tp) 2637 FOR_ALL_TABPAGES(tp)
2638 { 2638 {
2639 win_T *p; 2639 win_T *twp;
2640 2640
2641 for (p = tp->tp_first_popupwin; p != NULL; p = wp->w_next) 2641 for (twp = tp->tp_first_popupwin; twp != NULL; twp = twp->w_next)
2642 if (p->w_id == id) 2642 if (twp->w_id == id)
2643 break; 2643 break;
2644 if (p != NULL) 2644 if (twp != NULL)
2645 break; 2645 break;
2646 ++i; 2646 ++i;
2647 } 2647 }
2648 if (tp == NULL) 2648 if (tp == NULL)
2649 i = -1; // must be global 2649 i = -1; // must be global