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.
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 82f9462..cc6a920 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -5452,6 +5452,8 @@
static void
ex_bunload(exarg_T *eap)
{
+ if (NOT_IN_POPUP_WINDOW)
+ return;
eap->errmsg = do_bufdel(
eap->cmdidx == CMD_bdelete ? DOBUF_DEL
: eap->cmdidx == CMD_bwipeout ? DOBUF_WIPE
@@ -5466,6 +5468,8 @@
static void
ex_buffer(exarg_T *eap)
{
+ if (NOT_IN_POPUP_WINDOW)
+ return;
if (*eap->arg)
eap->errmsg = e_trailing;
else
@@ -6768,6 +6772,9 @@
|| eap->cmdidx == CMD_tabfind
|| eap->cmdidx == CMD_tabnew;
+ if (NOT_IN_POPUP_WINDOW)
+ return;
+
#ifdef FEAT_GUI
need_mouse_correct = TRUE;
#endif
@@ -6895,6 +6902,8 @@
{
int tab_number;
+ if (NOT_IN_POPUP_WINDOW)
+ return;
switch (eap->cmdidx)
{
case CMD_tabfirst:
@@ -7146,6 +7155,8 @@
int need_hide;
int exmode_was = exmode_active;
+ if (NOT_IN_POPUP_WINDOW)
+ return;
/*
* ":vi" command ends Ex mode.
*/