mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.1.1245: ":copen 10" sets height in full-height window
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)
This commit is contained in:
@@ -4016,7 +4016,8 @@ qf_goto_cwindow(qf_info_T *qi, int resize, int sz, int vertsplit)
|
|||||||
if (sz != win->w_width)
|
if (sz != win->w_width)
|
||||||
win_setwidth(sz);
|
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);
|
win_setheight(sz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -279,6 +279,15 @@ func Test_cwindow()
|
|||||||
call XwindowTests('l')
|
call XwindowTests('l')
|
||||||
endfunc
|
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
|
" Tests for the :cfile, :lfile, :caddfile, :laddfile, :cgetfile and :lgetfile
|
||||||
" commands.
|
" commands.
|
||||||
func XfileTests(cchar)
|
func XfileTests(cchar)
|
||||||
|
@@ -767,6 +767,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1245,
|
||||||
/**/
|
/**/
|
||||||
1244,
|
1244,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user