# HG changeset patch # User Bram Moolenaar # Date 1556821806 -7200 # Node ID 393dd420a753ca184be7999ad8a419d0db295604 # Parent 7d0ded7f3e97ed81d0ddff592f7344d956a86aa3 patch 8.1.1245: ":copen 10" sets height in full-height window commit https://github.com/vim/vim/commit/36d502225c3ec5e8b30771d58ee20171ce564b2f Author: Bram Moolenaar Date: Thu May 2 20:17:40 2019 +0200 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) diff --git a/src/quickfix.c b/src/quickfix.c --- a/src/quickfix.c +++ b/src/quickfix.c @@ -4016,7 +4016,8 @@ qf_goto_cwindow(qf_info_T *qi, int resiz 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); } diff --git a/src/testdir/test_quickfix.vim b/src/testdir/test_quickfix.vim --- a/src/testdir/test_quickfix.vim +++ b/src/testdir/test_quickfix.vim @@ -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) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -768,6 +768,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1245, +/**/ 1244, /**/ 1243,