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:
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user