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:
Bastian Winkler 2015-04-29 20:29:41 +02:00 committed by Michael Reed
parent 46871d159a
commit df3abf4df0
2 changed files with 9 additions and 2 deletions

View File

@ -77,7 +77,7 @@ static int included_patches[] = {
//709,
//708,
//707,
//706,
706,
//705,
//704,
//703,

View File

@ -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))