summaryrefslogtreecommitdiff
path: root/src/vim9script.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-08-05 20:40:03 +0200
committerBram Moolenaar <Bram@vim.org>2021-08-05 20:40:03 +0200
commit63b9173693015b135aad8e3657bef5e7f776787e (patch)
tree562fd413b11ae6a4c45f39538b89ec881aebf2cb /src/vim9script.c
parentaf647e76cacc60d3cfc5df3ff5b3d9d4b69b519d (diff)
downloadvim-git-63b9173693015b135aad8e3657bef5e7f776787e.tar.gz
patch 8.2.3297: cannot use all commands inside a {} blockv8.2.3297
Problem: Cannot use all commands inside a {} block after :command and :autocmd. Solution: Do consider \n to separate commands. (closes #8620)
Diffstat (limited to 'src/vim9script.c')
-rw-r--r--src/vim9script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9script.c b/src/vim9script.c
index 40f857fe0..68919e8cc 100644
--- a/src/vim9script.c
+++ b/src/vim9script.c
@@ -311,7 +311,7 @@ ex_import(exarg_T *eap)
cmd_end = handle_import(eap->arg, NULL, current_sctx.sc_sid,
&evalarg, NULL);
if (cmd_end != NULL)
- eap->nextcmd = check_nextcmd(cmd_end);
+ set_nextcmd(eap, cmd_end);
clear_evalarg(&evalarg, eap);
}