fix(eval): make error number of charidx() same as Vim

This commit is contained in:
zeertzjq
2022-11-05 18:02:05 +08:00
parent 8e868d699a
commit 3c0651fb45
2 changed files with 3 additions and 3 deletions

View File

@@ -908,7 +908,7 @@ static void f_charidx(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
countcc = (int)tv_get_number(&argvars[2]);
}
if (countcc < 0 || countcc > 1) {
emsg(_(e_invarg));
semsg(_(e_using_number_as_bool_nr), countcc);
return;
}