diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-02-12 21:48:20 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-12 21:48:20 +0800 |
| commit | 7db0aa027cff8da11a3fe2c26267a059f35297d7 (patch) | |
| tree | e75488c667ccca84801bbc0cc79c6bde518b994c /src/nvim/testdir | |
| parent | a1f34b248106619f861dcc186c1adf8053f572d7 (diff) | |
| parent | c23ec9d86e41e9dd03ab33ef8a80640e1366c476 (diff) | |
| download | rneovim-7db0aa027cff8da11a3fe2c26267a059f35297d7.tar.gz rneovim-7db0aa027cff8da11a3fe2c26267a059f35297d7.tar.bz2 rneovim-7db0aa027cff8da11a3fe2c26267a059f35297d7.zip | |
Merge pull request #17381 from zeertzjq/vim-8.2.0580
vim-patch:8.2.0580: window size wrong if 'ea' is off and 'splitright' is on
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_winbuf_close.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_winbuf_close.vim b/src/nvim/testdir/test_winbuf_close.vim index 7f5b80e8d3..f4878c2397 100644 --- a/src/nvim/testdir/test_winbuf_close.vim +++ b/src/nvim/testdir/test_winbuf_close.vim @@ -194,3 +194,22 @@ func Test_tabwin_close() call assert_true(v:true) %bwipe! endfunc + +" Test when closing a split window (above/below) restores space to the window +" below when 'noequalalways' and 'splitright' are set. +func Test_window_close_splitright_noequalalways() + set noequalalways + set splitright + new + let w1 = win_getid() + new + let w2 = win_getid() + execute "normal \<c-w>b" + let h = winheight(0) + let w = win_getid() + new + q + call assert_equal(h, winheight(0), "Window height does not match eight before opening and closing another window") + call assert_equal(w, win_getid(), "Did not return to original window after opening and closing a window") +endfunc + |