0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0142: possible to enter popup window with CTRL-W p

Problem:    Possible to enter popup window with CTRL-W p. (John Devin)
Solution:   Check entered window is not a popup window. (closes #5515)
This commit is contained in:
Bram Moolenaar
2020-01-23 15:33:54 +01:00
parent 0d76683e09
commit 8bf716cdba
6 changed files with 45 additions and 0 deletions

View File

@@ -2484,6 +2484,8 @@ popup_close_tabpage(tabpage_T *tp, int id)
void
close_all_popups(void)
{
if (ERROR_IF_POPUP_WINDOW)
return;
while (first_popupwin != NULL)
popup_close(first_popupwin->w_id);
while (curtab->tp_first_popupwin != NULL)