aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/funcs.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-12 14:03:32 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-09-12 14:56:42 +0800
commit38059b4f31d8c9374002e209bc9ee2df28ac17fa (patch)
tree20ad18d7b52726213d1f00c35bc3925da64b318b /src/nvim/eval/funcs.c
parentf98cff9575e75a050d2bde01ad950c0c72bcfc3e (diff)
downloadrneovim-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/eval/funcs.c')
-rw-r--r--src/nvim/eval/funcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c
index b59caab34f..99dfa13d88 100644
--- a/src/nvim/eval/funcs.c
+++ b/src/nvim/eval/funcs.c
@@ -1772,7 +1772,7 @@ static void f_eventhandler(typval_T *argvars, typval_T *rettv, EvalFuncData fptr
/// "executable()" function
static void f_executable(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) {
return;
}
@@ -1901,7 +1901,7 @@ static void f_win_execute(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
/// "exepath()" function
static void f_exepath(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
{
- if (tv_check_for_nonempty_string(&argvars[0]) == FAIL) {
+ if (tv_check_for_nonempty_string(&argvars[0], 1) == FAIL) {
return;
}