vim-patch:8.2.2646: Vim9: error for not using string doesn't mention argument

Problem:    Vim9: error for not using string doesn't mention argument.
Solution:   Add argument number.
f28f2ac425
This commit is contained in:
zeertzjq
2022-09-12 14:03:32 +08:00
parent f98cff9575
commit 38059b4f31
5 changed files with 30 additions and 15 deletions

View File

@@ -2793,7 +2793,7 @@ void f_setcellwidths(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
void f_charclass(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
{
if (tv_check_for_string(&argvars[0]) == FAIL
if (tv_check_for_string(&argvars[0], 1) == FAIL
|| argvars[0].vval.v_string == NULL) {
return;
}