]> granicus.if.org Git - vim/commitdiff
patch 8.2.0471: missing change to compile_list() v8.2.0471
authorBram Moolenaar <Bram@vim.org>
Sat, 28 Mar 2020 21:06:23 +0000 (22:06 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 28 Mar 2020 21:06:23 +0000 (22:06 +0100)
Problem:    Missing change to compile_list().
Solution:   Add error message.

src/version.c
src/vim9compile.c

index 954a751d58dfb59100e87ee0f54c06ea50763dbd..1d71cf0f06327c65ddc3c8b24524819825601f84 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    471,
 /**/
     470,
 /**/
index 12dae49dabac9d5e65e7d1f5747c03d172e76821..584618c0e19b2f8f5e3428c3fcec21da6b1f0c38 100644 (file)
@@ -2173,7 +2173,10 @@ compile_list(char_u **arg, cctx_T *cctx)
     while (*p != ']')
     {
        if (*p == NUL)
+       {
+           semsg(_(e_list_end), *arg);
            return FAIL;
+       }
        if (compile_expr1(&p, cctx) == FAIL)
            break;
        ++count;
@@ -2199,7 +2202,7 @@ compile_lambda(char_u **arg, cctx_T *cctx)
     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;