patch 8.2.0471: missing change to compile_list()
Problem: Missing change to compile_list().
Solution: Add error message.
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 12dae49..584618c 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -2173,7 +2173,10 @@
while (*p != ']')
{
if (*p == NUL)
+ {
+ semsg(_(e_list_end), *arg);
return FAIL;
+ }
if (compile_expr1(&p, cctx) == FAIL)
break;
++count;
@@ -2199,7 +2202,7 @@
ufunc_T *ufunc;
// Get the funcref in "rettv".
- if (get_lambda_tv(arg, &rettv, TRUE) == FAIL)
+ if (get_lambda_tv(arg, &rettv, TRUE) != OK)
return FAIL;
ufunc = rettv.vval.v_partial->pt_func;