diff options
| author | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2024-03-12 23:05:09 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-12 23:05:09 +0000 |
| commit | 9f59415243adcf70c02bc056ed755859456b20e8 (patch) | |
| tree | 638f689b5225eb4e63c30b2cf15fb549e0780183 /test/old/testdir/test_execute_func.vim | |
| parent | dc7ccd6bca81dfa6ade6462a6e30770c63d48266 (diff) | |
| parent | c048beef6c034a46e324fcea7210082d48db32ee (diff) | |
| download | rneovim-9f59415243adcf70c02bc056ed755859456b20e8.tar.gz rneovim-9f59415243adcf70c02bc056ed755859456b20e8.tar.bz2 rneovim-9f59415243adcf70c02bc056ed755859456b20e8.zip | |
Merge pull request #27839 from seandewar/vim-9.1.0169
vim-patch:9.1.{0169,0170,0171,9a660d2883f9}
Diffstat (limited to 'test/old/testdir/test_execute_func.vim')
| -rw-r--r-- | test/old/testdir/test_execute_func.vim | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/old/testdir/test_execute_func.vim b/test/old/testdir/test_execute_func.vim index d9909e92a6..ec8ed160c3 100644 --- a/test/old/testdir/test_execute_func.vim +++ b/test/old/testdir/test_execute_func.vim @@ -212,4 +212,28 @@ func Test_execute_cmd_with_null() endif endfunc +func Test_win_execute_tabpagewinnr() + belowright split + tab split + belowright split + call assert_equal(2, tabpagewinnr(1)) + + tabprevious + wincmd p + call assert_equal(1, tabpagenr()) + call assert_equal(1, tabpagewinnr(1)) + call assert_equal(2, tabpagewinnr(2)) + + call win_execute(win_getid(1, 2), + \ 'call assert_equal(2, tabpagenr())' + \ .. '| call assert_equal(1, tabpagewinnr(1))' + \ .. '| call assert_equal(1, tabpagewinnr(2))') + + call assert_equal(1, tabpagenr()) + call assert_equal(1, tabpagewinnr(1)) + call assert_equal(2, tabpagewinnr(2)) + + %bwipe! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |