Problem: After maximizing and deleting the quickfix buffer, window
height is wrong (tertium)
Solution: Reset the winfixheight option when a quickfix buffer is
deleted from a window (Yegappan Lakshmanan)
fixes: #3378
closes: #20403
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
unblock_autocmds();
}
+ // When a quickfix buffer is deleted from a window, clear the
+ // 'winfixheight' option.
+ if (bt_quickfix(buf) && win_valid && win->w_buffer == buf)
+ win->w_p_wfh = FALSE;
+
// Remember if the buffer may be hidden soon, or is already hidden.
hiding_buf = buf->b_nwindows <= 0 || ((win_valid || closed_popup)
&& win->w_buffer == buf && buf->b_nwindows == 1);
call Xtest_set_qftf_in_sandbox('l')
endfunc
+" Test for the 'statusline' height remaining at one when the quickfix buffer
+" is wiped out when quickfix window is the only window open.
+func Test_qf_statusline_height()
+ %bw!
+ copen
+ wincmd p
+ let prev_wh = winheight('.')
+ wincmd p
+ only
+ bw!
+ copen
+ wincmd p
+ call assert_equal(prev_wh, winheight('.'))
+ %bw!
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 581,
/**/
580,
/**/