diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-01 16:43:17 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-01 16:43:17 +0100 |
commit | b5b4f61cf192324379b6a8c4f7ed83a13f0e3bc6 (patch) | |
tree | fa39548983e85dc2255c0dba25a17b9561a97e29 /src/popupwin.c | |
parent | 7d7ad7b2e8c6403033fbdb083f092321c0ccbfaf (diff) |
patch 9.0.0351: message window may obscure the command linev9.0.0351
Problem: Message window may obscure the command line.
Solution: Reduce the maximum height of the message window.
Diffstat (limited to 'src/popupwin.c')
-rw-r--r-- | src/popupwin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/popupwin.c b/src/popupwin.c index 72d3878799..8688f3e3d1 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -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) |