forked from aniani/vim
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:
@@ -279,6 +279,15 @@ func Test_cwindow()
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user