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

patch 8.2.3815: Vim9: cannot have a multi-line dict inside a block

Problem:    Vim9: cannot have a multi-line dict inside a block.
Solution:   Do not split the command at a line break, handle NL characters
            as white space.
This commit is contained in:
Bram Moolenaar
2021-12-15 15:41:44 +00:00
parent cfabad9bcf
commit ce7eada12e
6 changed files with 34 additions and 4 deletions

View File

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