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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user