diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-12-05 20:31:07 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-12-05 20:31:07 +0100 |
commit | 415a6939a4e8d4e26b4af26c24eb75243d3a2756 (patch) | |
tree | b282dacb3270498516e2cc937658bb931216b120 /src/vim.h | |
parent | 5fe6bdf858a7f2f288d599ffb5efb3c08449c817 (diff) | |
download | vim-git-415a6939a4e8d4e26b4af26c24eb75243d3a2756.tar.gz |
patch 8.0.1375: window size wrong after maximizing with WinBarv8.0.1375
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)
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 */ |