Skip to content

Commit a30590d

Browse files
committed
patch 8.2.0471: missing change to compile_list()
Problem: Missing change to compile_list(). Solution: Add error message.
1 parent 7b1b36b commit a30590d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
471,
741743
/**/
742744
470,
743745
/**/

src/vim9compile.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,10 @@ compile_list(char_u **arg, cctx_T *cctx)
21732173
while (*p != ']')
21742174
{
21752175
if (*p == NUL)
2176+
{
2177+
semsg(_(e_list_end), *arg);
21762178
return FAIL;
2179+
}
21772180
if (compile_expr1(&p, cctx) == FAIL)
21782181
break;
21792182
++count;
@@ -2199,7 +2202,7 @@ compile_lambda(char_u **arg, cctx_T *cctx)
21992202
ufunc_T *ufunc;
22002203

22012204
// Get the funcref in "rettv".
2202-
if (get_lambda_tv(arg, &rettv, TRUE) == FAIL)
2205+
if (get_lambda_tv(arg, &rettv, TRUE) != OK)
22032206
return FAIL;
22042207

22052208
ufunc = rettv.vval.v_partial->pt_func;

0 commit comments

Comments
 (0)