Mercurial > vim
comparison src/vim.h @ 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 | 15a78f9a978f |
children | 6e81a68d63a1 |
comparison
equal
deleted
inserted
replaced
12997:f0c85ce3dd06 | 12998:dd734ee3e2fe |
---|---|
1476 #define MIN_COLUMNS 12 /* minimal columns for screen */ | 1476 #define MIN_COLUMNS 12 /* minimal columns for screen */ |
1477 #define MIN_LINES 2 /* minimal lines for screen */ | 1477 #define MIN_LINES 2 /* minimal lines for screen */ |
1478 #define STATUS_HEIGHT 1 /* height of a status line under a window */ | 1478 #define STATUS_HEIGHT 1 /* height of a status line under a window */ |
1479 #ifdef FEAT_MENU /* height of a status line under a window */ | 1479 #ifdef FEAT_MENU /* height of a status line under a window */ |
1480 # define WINBAR_HEIGHT(wp) (wp)->w_winbar_height | 1480 # define WINBAR_HEIGHT(wp) (wp)->w_winbar_height |
1481 # define VISIBLE_HEIGHT(wp) ((wp)->w_height + (wp)->w_winbar_height) | |
1481 #else | 1482 #else |
1482 # define WINBAR_HEIGHT(wp) 0 | 1483 # define WINBAR_HEIGHT(wp) 0 |
1484 # define VISIBLE_HEIGHT(wp) (wp)->w_height | |
1483 #endif | 1485 #endif |
1484 #define QF_WINHEIGHT 10 /* default height for quickfix window */ | 1486 #define QF_WINHEIGHT 10 /* default height for quickfix window */ |
1485 | 1487 |
1486 /* | 1488 /* |
1487 * Buffer sizes | 1489 * Buffer sizes |