Problem: Quickfix window height wrong when there is a tabline. (Daniel
Hahler)
Solution: Take the tabline height into account. (closes #5058)
if (sz != win->w_width)
win_setwidth(sz);
}
- else if (sz != win->w_height
- && win->w_height + win->w_status_height < cmdline_row)
+ else if (sz != win->w_height && win->w_height
+ + win->w_status_height + tabline_height() < cmdline_row)
win_setheight(sz);
}
quit
endfunc
+func Test_copenHeight_tabline()
+ set tabline=foo showtabline=2
+ copen
+ wincmd H
+ let height = winheight(0)
+ copen 10
+ call assert_equal(height, winheight(0))
+ quit
+ set tabline& showtabline&
+endfunc
+
+
" Tests for the :cfile, :lfile, :caddfile, :laddfile, :cgetfile and :lgetfile
" commands.
func XfileTests(cchar)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2154,
/**/
2153,
/**/