0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.0294: crash when 'cmdheight' is 0 and popup_clear() used

Problem:    Crash when 'cmdheight' is 0 and popup_clear() used.
Solution:   Reset "message_win" when the message popup is cleared.  Close the
            popup when 'cmdheight' is non-zero.  Add a screendump test.
This commit is contained in:
Bram Moolenaar
2022-08-28 13:02:45 +01:00
parent b0509c542e
commit 43568648df
8 changed files with 74 additions and 3 deletions

View File

@@ -6603,6 +6603,11 @@ command_height(void)
// Recompute window positions.
if (frp != lastwin->w_frame)
(void)win_comp_pos();
#ifdef HAS_MESSAGE_WINDOW
if (p_ch > 0)
popup_close_message_win();
#endif
}
/*