aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_execute_func.vim
diff options
context:
space:
mode:
authorjing <lhchenjw@gmail.com>2021-05-01 10:21:14 +0800
committerjing <lhchenjw@gmail.com>2021-05-06 23:45:16 +0800
commit73154bbae033513a937af8092320920a49684ce6 (patch)
tree1dcbc6bef8b2f6988586c42ff6ec68a1bb773116 /src/nvim/testdir/test_execute_func.vim
parent3c00252248daf54c5ba4ef2c983256cf81c71ded (diff)
downloadrneovim-73154bbae033513a937af8092320920a49684ce6.tar.gz
rneovim-73154bbae033513a937af8092320920a49684ce6.tar.bz2
rneovim-73154bbae033513a937af8092320920a49684ce6.zip
vim-patch:8.1.1832: win_execute() does not work in other tab
Problem: Win_execute() does not work in other tab. (Rick Howe) Solution: Take care of the tab. (closes vim/vim#4792) https://github.com/vim/vim/commit/820680b9ff1de8699156c7b060f97e5c0b87ad15
Diffstat (limited to 'src/nvim/testdir/test_execute_func.vim')
-rw-r--r--src/nvim/testdir/test_execute_func.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_execute_func.vim b/src/nvim/testdir/test_execute_func.vim
index a634f9fc91..9efed76eda 100644
--- a/src/nvim/testdir/test_execute_func.vim
+++ b/src/nvim/testdir/test_execute_func.vim
@@ -104,3 +104,12 @@ func Test_win_execute()
call win_gotoid(otherwin)
bwipe!
endfunc
+
+func Test_win_execute_other_tab()
+ let thiswin = win_getid()
+ tabnew
+ call win_execute(thiswin, 'let xyz = 1')
+ call assert_equal(1, xyz)
+ tabclose
+ unlet xyz
+endfunc