0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4226: filter-map test fails

Problem:    Filter-map test fails.
Solution:   Only reject number argument in Vim9 script.
This commit is contained in:
Bram Moolenaar
2022-01-26 21:17:04 +00:00
parent 70c43d84be
commit fc4c44836a
2 changed files with 3 additions and 1 deletions

View 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);