diff src/popupwin.c @ 19166:215793f6b59d v8.2.0142

patch 8.2.0142: possible to enter popup window with CTRL-W p Commit: https://github.com/vim/vim/commit/8bf716cdba0e48f56b8bfcbed0f4c702a705e095 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 23 15:33:54 2020 +0100 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 https://github.com/vim/vim/issues/5515)
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Jan 2020 15:45:04 +0100
parents 8db080710015
children c53dbbf3229b
line wrap: on
line diff
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -2484,6 +2484,8 @@ popup_close_tabpage(tabpage_T *tp, int i
     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)