diff src/screen.c @ 12998:dd734ee3e2fe v8.0.1375

patch 8.0.1375: window size wrong after maximizing with WinBar commit https://github.com/vim/vim/commit/415a6939a4e8d4e26b4af26c24eb75243d3a2756 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 5 20:31:07 2017 +0100 patch 8.0.1375: window size wrong after maximizing with WinBar Problem: Window size wrong after maximizing with WinBar. (Lifepillar) Solution: Fix height computations. Redraw window when it is zero height but has a WinBar. (closes #2356)
author Christian Brabandt <cb@256bit.org>
date Tue, 05 Dec 2017 20:45:05 +0100
parents 339681756948
children 27934188d7b5
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -1154,7 +1154,7 @@ win_update(win_T *wp)
     }
 
     /* Window is zero-height: nothing to draw. */
-    if (wp->w_height == 0)
+    if (wp->w_height + WINBAR_HEIGHT(wp) == 0)
     {
 	wp->w_redr_type = 0;
 	return;