Problem: ":copen 10" sets height in full-height window. (Daniel Hahler)
Solution: Don't set the height if the quickfix window is full height.
(closes #4325)
if (sz != win->w_width)
win_setwidth(sz);
}
- else if (sz != win->w_height)
+ else if (sz != win->w_height
+ && win->w_height + win->w_status_height < cmdline_row)
win_setheight(sz);
}
call XwindowTests('l')
endfunc
+func Test_copenHeight()
+ copen
+ wincmd H
+ let height = winheight(0)
+ copen 10
+ call assert_equal(height, winheight(0))
+ quit
+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 */
+/**/
+ 1245,
/**/
1244,
/**/