diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-11 18:23:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-11 18:23:19 +0200 |
commit | 5231224e11bf468f5366a7400414368908c40795 (patch) | |
tree | c0b97d2bf8e306ff58c9eb103fa91f67c16cf916 /src/testdir/test_vim9_builtin.vim | |
parent | 648594eaf703fe9a862cb12a35702a10aff6e5a9 (diff) | |
download | vim-git-5231224e11bf468f5366a7400414368908c40795.tar.gz |
patch 8.2.3148: Vim9: function arg type check does not handle base offsetv8.2.3148
Problem: Vim9: function arg type check does not handle base offset.
Solution: Take the base offset into account when checking builtin function
argument types.
Diffstat (limited to 'src/testdir/test_vim9_builtin.vim')
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index e26c2c0dd..a17d92a19 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -2305,6 +2305,8 @@ enddef def Test_win_execute() assert_equal("\n" .. winnr(), win_execute(win_getid(), 'echo winnr()')) + assert_equal("\n" .. winnr(), 'echo winnr()'->win_execute(win_getid())) + assert_equal("\n" .. winnr(), win_execute(win_getid(), 'echo winnr()', 'silent')) assert_equal('', win_execute(342343, 'echo winnr()')) enddef |