Patch 9.0.1321

3 views
Skip to first unread message

Bram Moolenaar

unread,
Feb 18, 2023, 10:32:30 AM2/18/23
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages