Mercurial > vim
diff src/evalfunc.c @ 21182:7289c8b9a620 v8.2.1142
patch 8.2.1142: Vim9: return type of insert() is any
Commit: https://github.com/vim/vim/commit/252e88a78535d239ec4b764d8e3f04aad5a94a76
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 5 20:47:18 2020 +0200
patch 8.2.1142: Vim9: return type of insert() is any
Problem: Vim9: return type of insert() is any.
Solution: Use type of the first argument.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 Jul 2020 21:00:04 +0200 |
parents | dde4c2e84f5c |
children | 2113e94dc726 |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -667,7 +667,7 @@ static funcentry_T global_functions[] = {"inputrestore", 0, 0, 0, ret_number, f_inputrestore}, {"inputsave", 0, 0, 0, ret_number, f_inputsave}, {"inputsecret", 1, 2, FEARG_1, ret_string, f_inputsecret}, - {"insert", 2, 3, FEARG_1, ret_any, f_insert}, + {"insert", 2, 3, FEARG_1, ret_first_arg, f_insert}, {"interrupt", 0, 0, 0, ret_void, f_interrupt}, {"invert", 1, 1, FEARG_1, ret_number, f_invert}, {"isdirectory", 1, 1, FEARG_1, ret_number, f_isdirectory},