diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-05 20:40:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-05 20:40:03 +0200 |
commit | 63b9173693015b135aad8e3657bef5e7f776787e (patch) | |
tree | 562fd413b11ae6a4c45f39538b89ec881aebf2cb /src/eval.c | |
parent | af647e76cacc60d3cfc5df3ff5b3d9d4b69b519d (diff) |
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/eval.c')
-rw-r--r-- | src/eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c index 550fe8e2ba..a72519dc41 100644 --- a/src/eval.c +++ b/src/eval.c @@ -2314,7 +2314,7 @@ eval0( } if (eap != NULL) - eap->nextcmd = check_nextcmd(p); + set_nextcmd(eap, p); return ret; } @@ -6173,7 +6173,7 @@ ex_echo(exarg_T *eap) clear_tv(&rettv); arg = skipwhite(arg); } - eap->nextcmd = check_nextcmd(arg); + set_nextcmd(eap, arg); clear_evalarg(&evalarg, eap); if (eap->skip) @@ -6317,7 +6317,7 @@ ex_execute(exarg_T *eap) if (eap->skip) --emsg_skip; - eap->nextcmd = check_nextcmd(arg); + set_nextcmd(eap, arg); } /* |