mirror of
https://github.com/vim/vim.git
synced 2025-10-29 09:37:35 -04:00
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>
This commit is contained in:
@@ -2758,6 +2758,8 @@ popup_hide(win_T *wp)
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user