patch 8.2.1065: Vim9: no line break allowed inside a list
Problem: Vim9: no line break allowed inside a list.
Solution: Handle line break inside a list in Vim9 script.
diff --git a/src/eval.c b/src/eval.c
index 1bfe808..99003ce 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1771,7 +1771,7 @@
* Otherwise just return "arg" unmodified and set "getnext" to FALSE.
* "arg" must point somewhere inside a line, not at the start.
*/
- static char_u *
+ char_u *
eval_next_non_blank(char_u *arg, evalarg_T *evalarg, int *getnext)
{
*getnext = FALSE;
@@ -1796,7 +1796,7 @@
/*
* To be called when eval_next_non_blank() sets "getnext" to TRUE.
*/
- static char_u *
+ char_u *
eval_next_line(evalarg_T *evalarg)
{
vim_free(evalarg->eval_tofree);
@@ -2773,7 +2773,7 @@
/*
* List: [expr, expr]
*/
- case '[': ret = get_list_tv(arg, rettv, flags, TRUE);
+ case '[': ret = get_list_tv(arg, rettv, evalarg, TRUE);
break;
/*