0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.0471: missing change to compile_list()

Problem:    Missing change to compile_list().
Solution:   Add error message.
This commit is contained in:
Bram Moolenaar 2020-03-28 22:06:23 +01:00
parent 7b1b36b1cb
commit a30590d3e7
2 changed files with 6 additions and 1 deletions

View File

@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
471,
/**/ /**/
470, 470,
/**/ /**/

View File

@ -2173,7 +2173,10 @@ compile_list(char_u **arg, cctx_T *cctx)
while (*p != ']') while (*p != ']')
{ {
if (*p == NUL) if (*p == NUL)
{
semsg(_(e_list_end), *arg);
return FAIL; return FAIL;
}
if (compile_expr1(&p, cctx) == FAIL) if (compile_expr1(&p, cctx) == FAIL)
break; break;
++count; ++count;
@ -2199,7 +2202,7 @@ compile_lambda(char_u **arg, cctx_T *cctx)
ufunc_T *ufunc; ufunc_T *ufunc;
// Get the funcref in "rettv". // Get the funcref in "rettv".
if (get_lambda_tv(arg, &rettv, TRUE) == FAIL) if (get_lambda_tv(arg, &rettv, TRUE) != OK)
return FAIL; return FAIL;
ufunc = rettv.vval.v_partial->pt_func; ufunc = rettv.vval.v_partial->pt_func;