To: vim_dev@googlegroups.com Subject: Patch 9.0.1321 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///