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:
parent
0917e86763
commit
d114975b9b
@ -3060,6 +3060,10 @@ call_user_func(
|
|||||||
clear_tv(rettv);
|
clear_tv(rettv);
|
||||||
rettv->v_type = VAR_NUMBER;
|
rettv->v_type = VAR_NUMBER;
|
||||||
rettv->vval.v_number = -1;
|
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;
|
retval = FCERR_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -695,6 +695,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 */
|
||||||
|
/**/
|
||||||
|
1321,
|
||||||
/**/
|
/**/
|
||||||
1320,
|
1320,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user