diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-12 22:08:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-12 22:08:53 +0100 |
commit | 37487e16da7877129edee8d11b9b7f5c8df312c6 (patch) | |
tree | 0363a52316b5f9bfc366235c6006324ac57599b8 /src/testdir/test_vim9_builtin.vim | |
parent | a47e05f04a5a5c0369c949157c24d09cbe64ad6a (diff) |
patch 8.2.2340: win_execute() unexpectedly returns number zero when failingv8.2.2340
Problem: win_execute() unexpectedly returns number zero when failing.
Solution: Return an empty string. (closes #7665)
Diffstat (limited to 'src/testdir/test_vim9_builtin.vim')
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index a84b7f6210..40cfdcbb14 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -800,6 +800,11 @@ def Test_timer_paused() timer_stop(id) enddef +def Test_win_execute() + assert_equal("\n" .. winnr(), win_execute(win_getid(), 'echo winnr()')) + assert_equal('', win_execute(342343, 'echo winnr()')) +enddef + def Test_win_splitmove() split win_splitmove(1, 2, {vertical: true, rightbelow: true}) |