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_execute_func.vim | |
parent | a47e05f04a5a5c0369c949157c24d09cbe64ad6a (diff) | |
download | vim-git-37487e16da7877129edee8d11b9b7f5c8df312c6.tar.gz |
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_execute_func.vim')
-rw-r--r-- | src/testdir/test_execute_func.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_execute_func.vim b/src/testdir/test_execute_func.vim index e02b08eb4..036371715 100644 --- a/src/testdir/test_execute_func.vim +++ b/src/testdir/test_execute_func.vim @@ -89,6 +89,8 @@ func Test_win_execute() call win_gotoid(thiswin) let line = win_execute(otherwin, 'echo getline(1)') call assert_match('the new window', line) + let line = win_execute(134343, 'echo getline(1)') + call assert_equal('', line) if has('popupwin') let popupwin = popup_create('the popup win', {'line': 2, 'col': 3}) |