comparison src/vim9compile.c @ 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 fc3cdc819d80
children 36d629aa3d6e
comparison
equal deleted inserted replaced
19829:803233fb7105 19830:6500dcaf8e1a
2171 int count = 0; 2171 int count = 0;
2172 2172
2173 while (*p != ']') 2173 while (*p != ']')
2174 { 2174 {
2175 if (*p == NUL) 2175 if (*p == NUL)
2176 {
2177 semsg(_(e_list_end), *arg);
2176 return FAIL; 2178 return FAIL;
2179 }
2177 if (compile_expr1(&p, cctx) == FAIL) 2180 if (compile_expr1(&p, cctx) == FAIL)
2178 break; 2181 break;
2179 ++count; 2182 ++count;
2180 if (*p == ',') 2183 if (*p == ',')
2181 ++p; 2184 ++p;
2197 garray_T *instr = &cctx->ctx_instr; 2200 garray_T *instr = &cctx->ctx_instr;
2198 typval_T rettv; 2201 typval_T rettv;
2199 ufunc_T *ufunc; 2202 ufunc_T *ufunc;
2200 2203
2201 // Get the funcref in "rettv". 2204 // Get the funcref in "rettv".
2202 if (get_lambda_tv(arg, &rettv, TRUE) == FAIL) 2205 if (get_lambda_tv(arg, &rettv, TRUE) != OK)
2203 return FAIL; 2206 return FAIL;
2204 2207
2205 ufunc = rettv.vval.v_partial->pt_func; 2208 ufunc = rettv.vval.v_partial->pt_func;
2206 ++ufunc->uf_refcount; 2209 ++ufunc->uf_refcount;
2207 clear_tv(&rettv); 2210 clear_tv(&rettv);