Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
16165:647e37b405fd | 16166:a3284dd27de6 |
---|---|
156 call assert_equal(l:width, winwidth(0)) | 156 call assert_equal(l:width, winwidth(0)) |
157 | 157 |
158 %bwipeout! | 158 %bwipeout! |
159 setlocal nowinfixwidth splitbelow& splitright& | 159 setlocal nowinfixwidth splitbelow& splitright& |
160 endfunction | 160 endfunction |
161 | |
162 " Test that 'winfixheight' will be respected even there is non-leaf frame | |
163 fun! Test_winfixheight_non_leaf_frame() | |
164 vsplit | |
165 botright 11new | |
166 let l:wid = win_getid() | |
167 setlocal winfixheight | |
168 call assert_equal(11, winheight(l:wid)) | |
169 botright new | |
170 bwipe! | |
171 call assert_equal(11, winheight(l:wid)) | |
172 %bwipe! | |
173 endf | |
174 | |
175 " Test that 'winfixwidth' will be respected even there is non-leaf frame | |
176 fun! Test_winfixwidth_non_leaf_frame() | |
177 split | |
178 topleft 11vnew | |
179 let l:wid = win_getid() | |
180 setlocal winfixwidth | |
181 call assert_equal(11, winwidth(l:wid)) | |
182 topleft new | |
183 bwipe! | |
184 call assert_equal(11, winwidth(l:wid)) | |
185 %bwipe! | |
186 endf |