Skip to content

Commit 87e74d0

Browse files
committed
patch 9.0.0446: message window may be positioned too low
Problem: Message window may be positioned too low. Solution: Compute cmdline_row before computing the position.
1 parent 29ab524 commit 87e74d0

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

src/popupwin.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,9 +1301,14 @@ popup_adjust_position(win_T *wp)
13011301
wp->w_winrow = Rows - 1;
13021302
}
13031303
if (wp->w_popup_pos == POPPOS_BOTTOM)
1304-
// assume that each buffer line takes one screen line
1304+
{
1305+
// Assume that each buffer line takes one screen line, and one line
1306+
// for the top border. First make sure cmdline_row is valid,
1307+
// calling update_screen() will set it only later.
1308+
compute_cmdrow();
13051309
wp->w_winrow = MAX(cmdline_row
13061310
- wp->w_buffer->b_ml.ml_line_count - 1, 0);
1311+
}
13071312

13081313
if (!use_wantcol)
13091314
center_hor = TRUE;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
>s+0&#ffffff0|o|m|e| |t|e|x|t| @65
2+
|~+0#4040ff13&| @73
3+
|~| @73
4+
|~| @73
5+
|═+0#e000002&@74
6+
|m|e|s@1|a|g|e| @67
7+
|o+0#0000000&|n|e| @71
8+
|t|w|o| @53|1|,|1| @10|A|l@1|

src/version.c

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

704704
static int included_patches[] =
705705
{ /* Add new patch number below this line */
706+
/**/
707+
446,
706708
/**/
707709
445,
708710
/**/

0 commit comments

Comments
 (0)