summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-01 14:15:52 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-01 14:15:52 +0200
commit815b76bff618c07226653e11f29c4d3c5640b63a (patch)
treefbe1ffe3d0c5d15914bf9e7aaee5bc007e9390ab /src/ex_cmds2.c
parent3a97bb3f0f8bd118ae23f1c97e55d84ff42eef20 (diff)
patch 8.1.1438: some commands cause trouble in a popup windowv8.1.1438
Problem: Some commands cause trouble in a popup window. Solution: Add NOT_IN_POPUP_WINDOW.
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 5a33bb128c..66e5fca128 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -1864,6 +1864,8 @@ do_argfile(exarg_T *eap, int argn)
char_u *p;
int old_arg_idx = curwin->w_arg_idx;
+ if (NOT_IN_POPUP_WINDOW)
+ return;
if (argn < 0 || argn >= ARGCOUNT)
{
if (ARGCOUNT <= 1)