diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-03-30 22:20:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-30 22:20:08 +0100 |
| commit | 2bdc7cac8be54d32c8a30cbc21639e4782a86789 (patch) | |
| tree | eaf2df256f1032a656856800813bbd4e0e4d9c81 /src/nvim/testdir | |
| parent | 104a40463af1d4e5e74f38379251f29ec73500c2 (diff) | |
| download | rneovim-2bdc7cac8be54d32c8a30cbc21639e4782a86789.tar.gz rneovim-2bdc7cac8be54d32c8a30cbc21639e4782a86789.tar.bz2 rneovim-2bdc7cac8be54d32c8a30cbc21639e4782a86789.zip | |
vim-patch:8.1.1088: height of quickfix window not retained with vertical split (#9818)
Problem: Height of quickfix window not retained with vertical split.
Solution: Use frame_fixed_height() and frame_fixed_width(). (Hongbo Liu,
closes vim/vim#4013, closes vim/vim#2998)
https://github.com/vim/vim/commit/9e1e358d376284c3aaf3a9f1e568bca297405f62
closes #3608
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_winbuf_close.vim | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_winbuf_close.vim b/src/nvim/testdir/test_winbuf_close.vim index e4618610cd..ee43540fdd 100644 --- a/src/nvim/testdir/test_winbuf_close.vim +++ b/src/nvim/testdir/test_winbuf_close.vim @@ -158,3 +158,29 @@ func Test_winfixwidth_on_close() %bwipeout! setlocal nowinfixwidth splitbelow& splitright& endfunction + +" Test that 'winfixheight' will be respected even there is non-leaf frame +fun! Test_winfixheight_non_leaf_frame() + vsplit + botright 11new + let l:wid = win_getid() + setlocal winfixheight + call assert_equal(11, winheight(l:wid)) + botright new + bwipe! + call assert_equal(11, winheight(l:wid)) + %bwipe! +endf + +" Test that 'winfixwidth' will be respected even there is non-leaf frame +fun! Test_winfixwidth_non_leaf_frame() + split + topleft 11vnew + let l:wid = win_getid() + setlocal winfixwidth + call assert_equal(11, winwidth(l:wid)) + topleft new + bwipe! + call assert_equal(11, winwidth(l:wid)) + %bwipe! +endf |