mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.706 #2546
Problem: Window drawn wrong when 'laststatus' is zero and there is a command-line window. (Yclept Nemo) Solution: Set the status height a bit later. (Christian Brabandt) https://github.com/vim/vim/commit/v7-4-706
This commit is contained in:
parent
46871d159a
commit
df3abf4df0
@ -77,7 +77,7 @@ static int included_patches[] = {
|
||||
//709,
|
||||
//708,
|
||||
//707,
|
||||
//706,
|
||||
706,
|
||||
//705,
|
||||
//704,
|
||||
//703,
|
||||
|
@ -911,12 +911,19 @@ int win_split_ins(int size, int flags, win_T *new_wp, int dir)
|
||||
} else { /* new window below current one */
|
||||
wp->w_winrow = oldwin->w_winrow + oldwin->w_height + STATUS_HEIGHT;
|
||||
wp->w_status_height = oldwin->w_status_height;
|
||||
oldwin->w_status_height = STATUS_HEIGHT;
|
||||
// Don't set the status_height for oldwin yet, this might break
|
||||
// frame_fix_height(oldwin), therefore will be set below.
|
||||
}
|
||||
if (flags & WSP_BOT)
|
||||
frame_add_statusline(curfrp);
|
||||
frame_fix_height(wp);
|
||||
frame_fix_height(oldwin);
|
||||
|
||||
if (!before) {
|
||||
// New window above current one, set the status_height after
|
||||
// frame_fix_height(oldwin)
|
||||
oldwin->w_status_height = STATUS_HEIGHT;
|
||||
}
|
||||
}
|
||||
|
||||
if (flags & (WSP_TOP | WSP_BOT))
|
||||
|
Loading…
Reference in New Issue
Block a user