0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -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

@@ -2150,7 +2150,7 @@ eval_next_line(evalarg_T *evalarg)
skipwhite_and_linebreak(char_u *arg, evalarg_T *evalarg)
{
int getnext;
char_u *p = skipwhite(arg);
char_u *p = skipwhite_and_nl(arg);
if (evalarg == NULL)
return skipwhite(arg);