0
0
mirror of https://github.com/vim/vim.git synced 2025-10-17 07:44:28 -04:00

patch 8.2.3817: Vim9: Not using NL as command end does not work for :autocmd

Problem:    Vim9: Not using NL as command end does not work for :autocmd.
Solution:   Only ignore NL for commands with an expression argument.
This commit is contained in:
Bram Moolenaar
2021-12-15 17:53:40 +00:00
parent 1821d1498c
commit f87dac04c3
4 changed files with 38 additions and 24 deletions

View File

@@ -2305,7 +2305,7 @@ do_one_cmd(
// versions.
if (*p == '\\' && p[1] == '\n')
STRMOVE(p, p + 1);
else if (*p == '\n' && (ea.argt & EX_TRLBAR))
else if (*p == '\n' && !(ea.argt & EX_EXPR_ARG))
{
ea.nextcmd = p + 1;
*p = NUL;