mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -1478,8 +1478,10 @@ typedef UINT32_TYPEDEF UINT32_T;
|
||||
#define STATUS_HEIGHT 1 /* height of a status line under a window */
|
||||
#ifdef FEAT_MENU /* height of a status line under a window */
|
||||
# define WINBAR_HEIGHT(wp) (wp)->w_winbar_height
|
||||
# define VISIBLE_HEIGHT(wp) ((wp)->w_height + (wp)->w_winbar_height)
|
||||
#else
|
||||
# define WINBAR_HEIGHT(wp) 0
|
||||
# define VISIBLE_HEIGHT(wp) (wp)->w_height
|
||||
#endif
|
||||
#define QF_WINHEIGHT 10 /* default height for quickfix window */
|
||||
|
||||
|
Reference in New Issue
Block a user