1
0
forked from aniani/vim

patch 8.1.1438: some commands cause trouble in a popup window

Problem:    Some commands cause trouble in a popup window.
Solution:   Add NOT_IN_POPUP_WINDOW.
This commit is contained in:
Bram Moolenaar
2019-06-01 14:15:52 +02:00
parent 3a97bb3f0f
commit 815b76bff6
8 changed files with 70 additions and 4 deletions

View File

@@ -747,4 +747,16 @@ f_popup_getoptions(typval_T *argvars, typval_T *rettv)
# endif
}
}
int
not_in_popup_window()
{
if (bt_popup(curwin->w_buffer))
{
emsg(_("E994: Not allowed in a popup window"));
return TRUE;
}
return FALSE;
}
#endif // FEAT_TEXT_PROP