0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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)
This commit is contained in:
Bram Moolenaar
2021-08-05 20:40:03 +02:00
parent af647e76ca
commit 63b9173693
16 changed files with 90 additions and 36 deletions

View File

@@ -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);
}
/*