diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-11 18:23:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-11 18:23:19 +0200 |
commit | 5231224e11bf468f5366a7400414368908c40795 (patch) | |
tree | c0b97d2bf8e306ff58c9eb103fa91f67c16cf916 /src/evalfunc.c | |
parent | 648594eaf703fe9a862cb12a35702a10aff6e5a9 (diff) |
patch 8.2.3148: Vim9: function arg type check does not handle base offsetv8.2.3148
Problem: Vim9: function arg type check does not handle base offset.
Solution: Take the base offset into account when checking builtin function
argument types.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 73012d45d6..3041a6c380 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -450,6 +450,7 @@ argcheck_T arg2_dict_string_or_nr[] = {arg_dict_any, arg_string_or_nr}; argcheck_T arg2_string_dict[] = {arg_string, arg_dict_any}; argcheck_T arg2_listblob_item[] = {arg_list_or_blob, arg_item_of_prev}; argcheck_T arg2_execute[] = {arg_string_or_list, arg_string}; +argcheck_T arg23_win_execute[] = {arg_number, arg_string_or_list, arg_string}; argcheck_T arg23_extend[] = {arg_list_or_dict, arg_same_as_prev, arg_extend3}; argcheck_T arg23_extendnew[] = {arg_list_or_dict, arg_same_struct_as_prev, arg_extend3}; argcheck_T arg3_string[] = {arg_string, arg_string, arg_string}; @@ -1832,7 +1833,7 @@ static funcentry_T global_functions[] = ret_string, f_visualmode}, {"wildmenumode", 0, 0, 0, NULL, ret_number, f_wildmenumode}, - {"win_execute", 2, 3, FEARG_2, NULL, + {"win_execute", 2, 3, FEARG_2, arg23_win_execute, ret_string, f_win_execute}, {"win_findbuf", 1, 1, FEARG_1, arg1_number, ret_list_number, f_win_findbuf}, |