diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-22 19:11:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-22 19:11:08 +0200 |
commit | cd268017cf79a546a494883b4b026a3cbbd9a8a0 (patch) | |
tree | 0bdf8392638ffbf37617bbb0623fa452f323bc2a /src/evalfunc.c | |
parent | 5dd839ce20466eea52e59ecf86456f1ab370d2bd (diff) |
patch 8.2.3203: Vim9: compiled string expression causes type errorv8.2.3203
Problem: Vim9: compiled string expression causes type error. (Yegappan
Lakshmanan)
Solution: Remove the string type from the stack.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 92621ec330..6570c5976d 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -711,6 +711,8 @@ static argcheck_T arg3_slice[] = {arg_slice1, arg_number, arg_number}; static argcheck_T arg4_strpart[] = {arg_string, arg_number, arg_number, arg_bool}; static argcheck_T arg23_win_execute[] = {arg_number, arg_string_or_list_string, arg_string}; static argcheck_T arg4_match_func[] = {arg_string_or_list_any, arg_string, arg_number, arg_number}; +static argcheck_T arg15_search[] = {arg_string, arg_string, arg_number, arg_number, NULL}; + /* * Functions that return the return type of a builtin function. @@ -1738,7 +1740,7 @@ static funcentry_T global_functions[] = ret_number, f_screenrow}, {"screenstring", 2, 2, FEARG_1, arg2_number, ret_string, f_screenstring}, - {"search", 1, 5, FEARG_1, NULL, + {"search", 1, 5, FEARG_1, arg15_search, ret_number, f_search}, {"searchcount", 0, 1, FEARG_1, arg1_dict_any, ret_dict_any, f_searchcount}, |