patch 8.1.1451: CTRL-L does not clear screen with a popup window
Problem: CTRL-L does not clear screen with a popup window.
Solution: Do not change the type to NOT_VALID. Redraw all windows.
(closes #4471)
diff --git a/src/screen.c b/src/screen.c
index be3bcfa..f179618 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -613,7 +613,12 @@
#ifdef FEAT_TEXT_PROP
// TODO: avoid redrawing everything when there is a popup window.
if (popup_any_visible())
- type = NOT_VALID;
+ {
+ if (type < NOT_VALID)
+ type = NOT_VALID;
+ FOR_ALL_WINDOWS(wp)
+ wp->w_redr_type = NOT_VALID;
+ }
#endif
updating_screen = TRUE;