Mercurial > vim
comparison src/evalfunc.c @ 21162:3158cc2384cc v8.2.1132
patch 8.2.1132: Vim9: return type of repeat() is not specific enough
Commit: https://github.com/vim/vim/commit/9978d473e32cee928d6f901a5eb9a297a2970132
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 5 16:01:56 2020 +0200
patch 8.2.1132: Vim9: return type of repeat() is not specific enough
Problem: Vim9: return type of repeat() is not specific enough.
Solution: Return the type of the first argument. (closes https://github.com/vim/vim/issues/6395)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 Jul 2020 16:15:03 +0200 |
parents | 4d844a65183d |
children | 4a190861f0cc |
comparison
equal
deleted
inserted
replaced
21161:daabdca5d4ec | 21162:3158cc2384cc |
---|---|
813 {"remote_expr", 2, 4, FEARG_1, ret_string, f_remote_expr}, | 813 {"remote_expr", 2, 4, FEARG_1, ret_string, f_remote_expr}, |
814 {"remote_foreground", 1, 1, FEARG_1, ret_string, f_remote_foreground}, | 814 {"remote_foreground", 1, 1, FEARG_1, ret_string, f_remote_foreground}, |
815 {"remote_peek", 1, 2, FEARG_1, ret_number, f_remote_peek}, | 815 {"remote_peek", 1, 2, FEARG_1, ret_number, f_remote_peek}, |
816 {"remote_read", 1, 2, FEARG_1, ret_string, f_remote_read}, | 816 {"remote_read", 1, 2, FEARG_1, ret_string, f_remote_read}, |
817 {"remote_send", 2, 3, FEARG_1, ret_string, f_remote_send}, | 817 {"remote_send", 2, 3, FEARG_1, ret_string, f_remote_send}, |
818 {"remote_startserver", 1, 1, FEARG_1, ret_void, f_remote_startserver}, | 818 {"remote_startserver", 1, 1, FEARG_1, ret_void, f_remote_startserver}, |
819 {"remove", 2, 3, FEARG_1, ret_any, f_remove}, | 819 {"remove", 2, 3, FEARG_1, ret_any, f_remove}, |
820 {"rename", 2, 2, FEARG_1, ret_number, f_rename}, | 820 {"rename", 2, 2, FEARG_1, ret_number, f_rename}, |
821 {"repeat", 2, 2, FEARG_1, ret_any, f_repeat}, | 821 {"repeat", 2, 2, FEARG_1, ret_first_arg, f_repeat}, |
822 {"resolve", 1, 1, FEARG_1, ret_string, f_resolve}, | 822 {"resolve", 1, 1, FEARG_1, ret_string, f_resolve}, |
823 {"reverse", 1, 1, FEARG_1, ret_any, f_reverse}, | 823 {"reverse", 1, 1, FEARG_1, ret_any, f_reverse}, |
824 {"round", 1, 1, FEARG_1, ret_float, FLOAT_FUNC(f_round)}, | 824 {"round", 1, 1, FEARG_1, ret_float, FLOAT_FUNC(f_round)}, |
825 {"rubyeval", 1, 1, FEARG_1, ret_any, | 825 {"rubyeval", 1, 1, FEARG_1, ret_any, |
826 #ifdef FEAT_RUBY | 826 #ifdef FEAT_RUBY |