diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-05 20:16:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-05 20:16:41 +0200 |
commit | 0d94ad69586972e7522ec6ca1441a517af2ade7a (patch) | |
tree | 774e4b9a400cc58f0bcf16610974edd5b112091e /src/evalfunc.c | |
parent | b3c019cbc32e2e9250ac668bf77d61ebd89c13f2 (diff) | |
download | vim-git-0d94ad69586972e7522ec6ca1441a517af2ade7a.tar.gz |
patch 8.2.1141: Vim9: return type of filter() is anyv8.2.1141
Problem: Vim9: return type of filter() is any.
Solution: Use type of the argument.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 439333184..b015f6dad 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -581,7 +581,7 @@ static funcentry_T global_functions[] = {"file_readable", 1, 1, FEARG_1, ret_number, f_filereadable}, // obsolete {"filereadable", 1, 1, FEARG_1, ret_number, f_filereadable}, {"filewritable", 1, 1, FEARG_1, ret_number, f_filewritable}, - {"filter", 2, 2, FEARG_1, ret_any, f_filter}, + {"filter", 2, 2, FEARG_1, ret_first_arg, f_filter}, {"finddir", 1, 3, FEARG_1, ret_string, f_finddir}, {"findfile", 1, 3, FEARG_1, ret_string, f_findfile}, {"flatten", 1, 2, FEARG_1, ret_list_any, f_flatten}, |