0
0
mirror of https://github.com/vim/vim.git synced 2025-08-26 20:03:41 -04:00

patch 9.0.1321: vimscript test fails where using {expr} syntax

Problem:    vimscript test fails where using {expr} syntax.
Solution:   Only return FCERR_FAILED in call_user_func() for Vim9 script.
This commit is contained in:
Bram Moolenaar 2023-02-18 15:31:53 +00:00
parent 0917e86763
commit d114975b9b
2 changed files with 7 additions and 1 deletions

View File

@ -3060,6 +3060,10 @@ call_user_func(
clear_tv(rettv);
rettv->v_type = VAR_NUMBER;
rettv->vval.v_number = -1;
// In corner cases returning a "failed" value is not backwards
// compatible. Only do this for Vim9 script.
if (in_vim9script())
retval = FCERR_FAILED;
}

View File

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