diff src/testdir/test_winbuf_close.vim @ 16166:a3284dd27de6 v8.1.1088

patch 8.1.1088: height of quickfix window not retained with vertical split commit https://github.com/vim/vim/commit/9e1e358d376284c3aaf3a9f1e568bca297405f62 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 30 19:49:06 2019 +0100 patch 8.1.1088: height of quickfix window not retained with vertical split Problem: Height of quickfix window not retained with vertical split. Solution: Use frame_fixed_height() and frame_fixed_width(). (Hongbo Liu, closes #4013, closes #2998)
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Mar 2019 20:00:05 +0100
parents 79419af4b29c
children 013f20a3bc6b
line wrap: on
line diff
--- a/src/testdir/test_winbuf_close.vim
+++ b/src/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