diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-09-12 14:03:32 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-09-12 14:56:42 +0800 |
commit | 38059b4f31d8c9374002e209bc9ee2df28ac17fa (patch) | |
tree | 20ad18d7b52726213d1f00c35bc3925da64b318b /src/nvim/mbyte.c | |
parent | f98cff9575e75a050d2bde01ad950c0c72bcfc3e (diff) | |
download | rneovim-38059b4f31d8c9374002e209bc9ee2df28ac17fa.tar.gz rneovim-38059b4f31d8c9374002e209bc9ee2df28ac17fa.tar.bz2 rneovim-38059b4f31d8c9374002e209bc9ee2df28ac17fa.zip |
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.
https://github.com/vim/vim/commit/f28f2ac425600b88da0bdcc12a82cd620f575681
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r-- | src/nvim/mbyte.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index dc74e23874..ebb5e2317b 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -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; } |