Patch 8.2.0471

10 views
Skip to first unread message

Bram Moolenaar

unread,
Mar 28, 2020, 5:07:01 PM3/28/20
to vim...@googlegroups.com

Patch 8.2.0471
Problem: Missing change to compile_list().
Solution: Add error message.
Files: src/vim9compile.c


*** ../vim-8.2.0470/src/vim9compile.c 2020-03-28 19:41:29.595765241 +0100
--- src/vim9compile.c 2020-03-28 21:20:42.843743402 +0100
***************
*** 2173,2179 ****
--- 2173,2182 ----
while (*p != ']')
{
if (*p == NUL)
+ {
+ semsg(_(e_list_end), *arg);
return FAIL;
+ }
if (compile_expr1(&p, cctx) == FAIL)
break;
++count;
***************
*** 2199,2205 ****
ufunc_T *ufunc;

// Get the funcref in "rettv".
! if (get_lambda_tv(arg, &rettv, TRUE) == FAIL)
return FAIL;

ufunc = rettv.vval.v_partial->pt_func;
--- 2202,2208 ----
ufunc_T *ufunc;

// Get the funcref in "rettv".
! if (get_lambda_tv(arg, &rettv, TRUE) != OK)
return FAIL;

ufunc = rettv.vval.v_partial->pt_func;
*** ../vim-8.2.0470/src/version.c 2020-03-28 21:48:51.238858476 +0100
--- src/version.c 2020-03-28 22:05:32.151613802 +0100
***************
*** 740,741 ****
--- 740,743 ----
{ /* Add new patch number below this line */
+ /**/
+ 471,
/**/

--
There are three kinds of people: Those who can count & those who can't.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages