Mercurial > vim
changeset 19830:6500dcaf8e1a v8.2.0471
patch 8.2.0471: missing change to compile_list()
Commit: https://github.com/vim/vim/commit/a30590d3e78aed3f6039edc642fb7532c40ea54e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 28 22:06:23 2020 +0100
patch 8.2.0471: missing change to compile_list()
Problem: Missing change to compile_list().
Solution: Add error message.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 28 Mar 2020 22:15:03 +0100 |
parents | 803233fb7105 |
children | 3d689590024d |
files | src/version.c src/vim9compile.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 471, +/**/ 470, /**/ 469,
--- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -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 *cct 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;