diff src/quickfix.c @ 16483:393dd420a753 v8.1.1245

patch 8.1.1245: ":copen 10" sets height in full-height window commit https://github.com/vim/vim/commit/36d502225c3ec5e8b30771d58ee20171ce564b2f Author: Bram Moolenaar <Bram@vim.org> 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)
author Bram Moolenaar <Bram@vim.org>
date Thu, 02 May 2019 20:30:06 +0200
parents 4202f556aefe
children 28e3ba82d8c8
line wrap: on
line diff
--- 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);
     }