0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 9.1.0713: Newline causes E749 in Ex mode

Problem:  Newline causes E749 in Ex mode (after 9.1.0573).
Solution: Don't execute empty command followed by a newline.

closes: #15614

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-09-03 22:58:30 +02:00
committed by Christian Brabandt
parent 3db32d2e7f
commit 2432b4a753
3 changed files with 23 additions and 0 deletions

View File

@@ -2916,6 +2916,11 @@ parse_command_modifiers(
}
return FAIL;
}
if (eap->nextcmd == NULL && *eap->cmd == '\n')
{
eap->nextcmd = eap->cmd + 1;
return FAIL;
}
if (*eap->cmd == NUL)
{
if (!skip_only)