Mercurial > vim
diff src/eval.c @ 25521:2063b858cad9 v8.2.3297
patch 8.2.3297: cannot use all commands inside a {} block
Commit: https://github.com/vim/vim/commit/63b9173693015b135aad8e3657bef5e7f776787e
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 5 20:40:03 2021 +0200
patch 8.2.3297: cannot use all commands inside a {} block
Problem: Cannot use all commands inside a {} block after :command and
:autocmd.
Solution: Do consider \n to separate commands. (closes #8620)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 05 Aug 2021 20:45:04 +0200 |
parents | 7144d2ffc86b |
children | ea69398b40d1 |
line wrap: on
line diff
--- 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); } /*