From b13d3405fffae1115acc1433479b616f30e292e5 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 29 Aug 2022 13:44:28 +0100 Subject: patch 9.0.0317: when updating the whole screen a popup may not be redrawn Problem: When updating the whole screen a popup may not be redrawn. Solution: Mark the screen and windows for redraw also when not clearing. Also mark popup windows for redraw. --- src/popupwin.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/popupwin.c') diff --git a/src/popupwin.c b/src/popupwin.c index 8e74e42010..0240994bef 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -1937,6 +1937,20 @@ popup_terminal_exists(void) } #endif +/* + * Mark all popup windows in the current tab and global for redrawing. + */ + void +popup_redraw_all(void) +{ + win_T *wp; + + FOR_ALL_POPUPWINS(wp) + wp->w_redr_type = UPD_NOT_VALID; + FOR_ALL_POPUPWINS_IN_TAB(curtab, wp) + wp->w_redr_type = UPD_NOT_VALID; +} + /* * Set the color for a notification window. */ -- cgit v1.2.3