]> granicus.if.org Git - vim/commitdiff
patch 8.2.4226: filter-map test fails v8.2.4226
authorBram Moolenaar <Bram@vim.org>
Wed, 26 Jan 2022 21:17:04 +0000 (21:17 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 26 Jan 2022 21:17:04 +0000 (21:17 +0000)
Problem:    Filter-map test fails.
Solution:   Only reject number argument in Vim9 script.

src/eval.c
src/version.c

index 7bc37f23766d8a5466621fa197f2897d81be2d20..e269932e271386f5b0e82985af4b9465adae9788 100644 (file)
@@ -291,7 +291,7 @@ eval_expr_typval(typval_T *expr, typval_T *argv, int argc, typval_T *rettv)
     }
     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);
index 7fbafc6044862327b67bec6ec097a1a8b37de65c..576c06c25271c955120beb07e0e63d624de111a5 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4226,
 /**/
     4225,
 /**/