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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user