Mercurial > vim
diff src/evalfunc.c @ 21771:fcf978444298 v8.2.1435
patch 8.2.1435: Vim9: always converting to string for ".." leads to mistakes
Commit: https://github.com/vim/vim/commit/418f1df54763b79600db1c91c880fbc1007b2e1f
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 12 21:34:49 2020 +0200
patch 8.2.1435: Vim9: always converting to string for ".." leads to mistakes
Problem: Vim9: always converting to string for ".." leads to mistakes.
Solution: Only automatically convert simple types.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Aug 2020 21:45:03 +0200 |
parents | 35921b7fc07a |
children | 51d4e0bc2eb7 |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -1046,7 +1046,7 @@ static funcentry_T global_functions[] = {"test_settime", 1, 1, FEARG_1, ret_void, f_test_settime}, {"test_srand_seed", 0, 1, FEARG_1, ret_void, f_test_srand_seed}, {"test_unknown", 0, 0, 0, ret_any, f_test_unknown}, - {"test_void", 0, 0, 0, ret_any, f_test_void}, + {"test_void", 0, 0, 0, ret_void, f_test_void}, {"timer_info", 0, 1, FEARG_1, ret_list_dict_any, TIMER_FUNC(f_timer_info)}, {"timer_pause", 2, 2, FEARG_1, ret_void, TIMER_FUNC(f_timer_pause)}, {"timer_start", 2, 3, FEARG_1, ret_number, TIMER_FUNC(f_timer_start)},