Mercurial > vim
comparison src/vim.h @ 12916:af2e0401eb8c v8.0.1334
patch 8.0.1334: splitting a window with a WinBar damages window layout
commit https://github.com/vim/vim/commit/3167c3e7010ac7e2fd7d3aa198dd2d1dcff8ecc8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 25 14:19:43 2017 +0100
patch 8.0.1334: splitting a window with a WinBar damages window layout
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().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 25 Nov 2017 14:30:05 +0100 |
parents | 0ebade0c0ab2 |
children | 327e1264b9bf |
comparison
equal
deleted
inserted
replaced
12915:2b9a459263e2 | 12916:af2e0401eb8c |
---|---|
1483 * Minimum screen size | 1483 * Minimum screen size |
1484 */ | 1484 */ |
1485 #define MIN_COLUMNS 12 /* minimal columns for screen */ | 1485 #define MIN_COLUMNS 12 /* minimal columns for screen */ |
1486 #define MIN_LINES 2 /* minimal lines for screen */ | 1486 #define MIN_LINES 2 /* minimal lines for screen */ |
1487 #define STATUS_HEIGHT 1 /* height of a status line under a window */ | 1487 #define STATUS_HEIGHT 1 /* height of a status line under a window */ |
1488 #ifdef FEAT_MENU /* height of a status line under a window */ | |
1489 # define WINBAR_HEIGHT(wp) (wp)->w_winbar_height | |
1490 #else | |
1491 # define WINBAR_HEIGHT(wp) 0 | |
1492 #endif | |
1488 #define QF_WINHEIGHT 10 /* default height for quickfix window */ | 1493 #define QF_WINHEIGHT 10 /* default height for quickfix window */ |
1489 | 1494 |
1490 /* | 1495 /* |
1491 * Buffer sizes | 1496 * Buffer sizes |
1492 */ | 1497 */ |