summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-26 22:46:27 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-26 22:46:27 +0200
commit7147820cb978f5b179cfec2f9d8b7774e28d43e0 (patch)
treea45b23ffe316b5135744b35b06763c8743888156 /src/eval.c
parente6536aa766e95b6c64489678eb029e6909ee6a35 (diff)
patch 8.2.1065: Vim9: no line break allowed inside a listv8.2.1065
Problem: Vim9: no line break allowed inside a list. Solution: Handle line break inside a list in Vim9 script.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c
index 1bfe808f54..99003ced2c 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1771,7 +1771,7 @@ eval_func(
* 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 @@ eval_next_non_blank(char_u *arg, evalarg_T *evalarg, int *getnext)
/*
* 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 @@ eval7(
/*
* List: [expr, expr]
*/
- case '[': ret = get_list_tv(arg, rettv, flags, TRUE);
+ case '[': ret = get_list_tv(arg, rettv, evalarg, TRUE);
break;
/*