diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-11-25 14:19:43 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-11-25 14:19:43 +0100 |
commit | 3167c3e7010ac7e2fd7d3aa198dd2d1dcff8ecc8 (patch) | |
tree | 2988c3c3ca7f684a7e23b3cd9c20baa7607d4108 /src/vim.h | |
parent | 2c997d76034d5294c92305108357daef6feabd95 (diff) | |
download | vim-git-3167c3e7010ac7e2fd7d3aa198dd2d1dcff8ecc8.tar.gz |
patch 8.0.1334: splitting a window with a WinBar damages window layoutv8.0.1334
Problem: Splitting a window with a WinBar damages window layout.
(Lifepillar)
Solution: Take the winbar into account when computing the new window
position. Add WINBAR_HEIGHT().
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1485,6 +1485,11 @@ typedef UINT32_TYPEDEF UINT32_T; #define MIN_COLUMNS 12 /* minimal columns for screen */ #define MIN_LINES 2 /* minimal lines for screen */ #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 +#else +# define WINBAR_HEIGHT(wp) 0 +#endif #define QF_WINHEIGHT 10 /* default height for quickfix window */ /* |