0
0
mirror of https://github.com/vim/vim.git synced 2025-10-14 07:04:10 -04:00

patch 7.4.706

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)
This commit is contained in:
Bram Moolenaar
2015-04-21 15:43:05 +02:00
parent bbc1a592a0
commit 5b14f89164
2 changed files with 9 additions and 1 deletions

View File

@@ -1236,7 +1236,8 @@ win_split_ins(size, flags, new_wp, dir)
{
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. */
}
#ifdef FEAT_VERTSPLIT
if (flags & WSP_BOT)
@@ -1244,6 +1245,11 @@ win_split_ins(size, flags, new_wp, dir)
#endif
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))