1
0
forked from aniani/vim

patch 9.0.0351: message window may obscure the command line

Problem:    Message window may obscure the command line.
Solution:   Reduce the maximum height of the message window.
This commit is contained in:
Bram Moolenaar
2022-09-01 16:43:17 +01:00
parent 7d7ad7b2e8
commit b5b4f61cf1
5 changed files with 24 additions and 12 deletions

View File

@@ -1356,6 +1356,8 @@ popup_adjust_position(win_T *wp)
if (wp->w_maxheight > 0)
maxheight = wp->w_maxheight;
else if (wp->w_popup_pos == POPPOS_BOTTOM)
maxheight = cmdline_row - 1;
// start at the desired first line
if (wp->w_firstline > 0)
@@ -4479,6 +4481,7 @@ popup_get_message_win(void)
message_win->w_popup_pos = POPPOS_BOTTOM;
message_win->w_wantcol = 1;
message_win->w_minwidth = 9999;
message_win->w_firstline = -1;
// no padding, border at the top
for (i = 0; i < 4; ++i)