summaryrefslogtreecommitdiff
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-05 20:08:39 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-05 20:08:39 +0200
commitb3c019cbc32e2e9250ac668bf77d61ebd89c13f2 (patch)
treeb9e0235036d4d0b6f0dfe472d81d503d52a780db /src/evalfunc.c
parent8f510afcd616fc62291fb41f9dd03ce298f1c601 (diff)
downloadvim-git-b3c019cbc32e2e9250ac668bf77d61ebd89c13f2.tar.gz
patch 8.2.1140: Vim9: return type of extend() is anyv8.2.1140
Problem: Vim9: return type of extend() is any. Solution: Use type of the argument.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 57e707fc3..439333184 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -576,7 +576,7 @@ static funcentry_T global_functions[] =
{"exp", 1, 1, FEARG_1, ret_float, FLOAT_FUNC(f_exp)},
{"expand", 1, 3, FEARG_1, ret_any, f_expand},
{"expandcmd", 1, 1, FEARG_1, ret_string, f_expandcmd},
- {"extend", 2, 3, FEARG_1, ret_any, f_extend},
+ {"extend", 2, 3, FEARG_1, ret_first_arg, f_extend},
{"feedkeys", 1, 2, FEARG_1, ret_void, f_feedkeys},
{"file_readable", 1, 1, FEARG_1, ret_number, f_filereadable}, // obsolete
{"filereadable", 1, 1, FEARG_1, ret_number, f_filereadable},