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/evalvars.c | |
parent | af647e76cacc60d3cfc5df3ff5b3d9d4b69b519d (diff) | |
download | vim-git-8.2.3297.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/evalvars.c')
-rw-r--r-- | src/evalvars.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evalvars.c b/src/evalvars.c index dc747f717..721b688d5 100644 --- a/src/evalvars.c +++ b/src/evalvars.c @@ -812,7 +812,7 @@ ex_let(exarg_T *eap) list_func_vars(&first); list_vim_vars(&first); } - eap->nextcmd = check_nextcmd(arg); + set_nextcmd(eap, arg); } else if (expr[0] == '=' && expr[1] == '<' && expr[2] == '<') { @@ -1629,7 +1629,7 @@ ex_unletlock( arg = skipwhite(name_end); } while (!ends_excmd2(name_end, arg)); - eap->nextcmd = check_nextcmd(arg); + set_nextcmd(eap, arg); } static int |