1
0
forked from aniani/vim

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

@@ -4343,8 +4343,15 @@ win_goto(win_T *wp)
win_T *owp = curwin;
#endif
#ifdef FEAT_PROP_POPUP
if (ERROR_IF_POPUP_WINDOW)
return;
if (popup_is_popup(wp))
{
emsg(_("E366: Not allowed to enter a popup window"));
return;
}
#endif
if (text_locked())
{
beep_flush();