Skip to content

Commit f807977

Browse files
brammooldouglasdrumond
authored andcommitted
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)
1 parent f7cf484 commit f807977

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,8 @@ static char *(features[]) =
756756

757757
static int included_patches[] =
758758
{ /* Add new patch number below this line */
759+
/**/
760+
706,
759761
/**/
760762
705,
761763
/**/

src/window.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,14 +1236,20 @@ win_split_ins(size, flags, new_wp, dir)
12361236
{
12371237
wp->w_winrow = oldwin->w_winrow + oldwin->w_height + STATUS_HEIGHT;
12381238
wp->w_status_height = oldwin->w_status_height;
1239-
oldwin->w_status_height = STATUS_HEIGHT;
1239+
/* Don't set the status_height for oldwin yet, this might break
1240+
* frame_fix_height(oldwin), therefore will be set below. */
12401241
}
12411242
#ifdef FEAT_VERTSPLIT
12421243
if (flags & WSP_BOT)
12431244
frame_add_statusline(curfrp);
12441245
#endif
12451246
frame_fix_height(wp);
12461247
frame_fix_height(oldwin);
1248+
1249+
if (!before)
1250+
/* new window above current one, set the status_height after
1251+
* frame_fix_height(oldwin) */
1252+
oldwin->w_status_height = STATUS_HEIGHT;
12471253
}
12481254

12491255
if (flags & (WSP_TOP | WSP_BOT))

0 commit comments

Comments
 (0)