changeset 27396:ab690582075a v8.2.4226

patch 8.2.4226: filter-map test fails Commit: https://github.com/vim/vim/commit/fc4c44836acf7cd83af6d9b5b4737a305c5b3fb2 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 26 21:17:04 2022 +0000 patch 8.2.4226: filter-map test fails Problem: Filter-map test fails. Solution: Only reject number argument in Vim9 script.
author Bram Moolenaar <Bram@vim.org>
date Wed, 26 Jan 2022 22:30:04 +0100
parents 69ac9f95b436
children 48efff3a6f0b
files src/eval.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -291,7 +291,7 @@ eval_expr_typval(typval_T *expr, typval_
     }
     else
     {
-	s = tv_get_string_buf_chk_strict(expr, buf, TRUE);
+	s = tv_get_string_buf_chk_strict(expr, buf, in_vim9script());
 	if (s == NULL)
 	    return FAIL;
 	s = skipwhite(s);
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4226,
+/**/
     4225,
 /**/
     4224,