patch 9.1.0710: popup window may hide part of Command line
Problem: when a popup window covers the command line,
the command line is not completely cleared on popup_hide()
(yu3s)
Solution: Check if the popup window covers the command line and if it
does, set the clear_cmdline flag.
fixes: #15608
closes: #15610
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/popupwin.c b/src/popupwin.c
index 0ff57fb..8c56717 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -2758,6 +2758,8 @@
wp->w_popup_flags |= POPF_HIDDEN;
// Do not decrement b_nwindows, we still reference the buffer.
+ if (wp->w_winrow + popup_height(wp) >= cmdline_row)
+ clear_cmdline = TRUE;
redraw_all_later(UPD_NOT_VALID);
popup_mask_refresh = TRUE;
}