Patch 9.0.1321 (after 9.0.1320)
Problem: vimscript test fails where using {expr} syntax.
Solution: Only return FCERR_FAILED in call_user_func() for Vim9 script.
Files: src/userfunc.c
*** ../vim-9.0.1320/src/userfunc.c 2023-02-18 14:42:40.113005575 +0000
--- src/userfunc.c 2023-02-18 15:28:58.378788606 +0000
***************
*** 3060,3066 ****
clear_tv(rettv);
rettv->v_type = VAR_NUMBER;
rettv->vval.v_number = -1;
! retval = FCERR_FAILED;
}
#ifdef FEAT_PROFILE
--- 3060,3070 ----
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;
}
#ifdef FEAT_PROFILE
*** ../vim-9.0.1320/src/version.c 2023-02-18 14:42:40.117005581 +0000
--- src/version.c 2023-02-18 15:30:28.234545486 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1321,
/**/
--
Drink wet cement and get really stoned.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20230218153224.10DB01C07A0%40moolenaar.net.