diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-03-21 12:04:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-21 12:04:06 -0400 |
| commit | 070e084a64dd08ff28c826843f0d61ca51837841 (patch) | |
| tree | 34a631b515f553447aa21f0400c8a576bb20dc61 /src/nvim/testdir/test_window_cmd.vim | |
| parent | e5bef5974e900001cb6ed302b39a6f5ddf48d9a4 (diff) | |
| parent | c620ca4cc2f5c0b3cebde2e172ed1682b06f4495 (diff) | |
| download | rneovim-070e084a64dd08ff28c826843f0d61ca51837841.tar.gz rneovim-070e084a64dd08ff28c826843f0d61ca51837841.tar.bz2 rneovim-070e084a64dd08ff28c826843f0d61ca51837841.zip | |
Merge pull request #14172 from janlazo/vim-8.2.2622
vim-patch:8.2.{2622,2624,2625,2626,2631,2634}
Diffstat (limited to 'src/nvim/testdir/test_window_cmd.vim')
| -rw-r--r-- | src/nvim/testdir/test_window_cmd.vim | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_window_cmd.vim b/src/nvim/testdir/test_window_cmd.vim index 86682cca4f..a522705238 100644 --- a/src/nvim/testdir/test_window_cmd.vim +++ b/src/nvim/testdir/test_window_cmd.vim @@ -550,16 +550,29 @@ endfunc func Test_winrestcmd() 2split 3vsplit - let a = winrestcmd() + let restcmd = winrestcmd() call assert_equal(2, winheight(0)) call assert_equal(3, winwidth(0)) wincmd = call assert_notequal(2, winheight(0)) call assert_notequal(3, winwidth(0)) - exe a + exe restcmd call assert_equal(2, winheight(0)) call assert_equal(3, winwidth(0)) only + + wincmd v + wincmd s + wincmd v + redraw + let restcmd = winrestcmd() + wincmd _ + wincmd | + exe restcmd + redraw + call assert_equal(restcmd, winrestcmd()) + + only endfunc function! Fun_RenewFile() |