patch 8.1.0768: updating completions may cause the popup menu to flicker
Problem: Updating completions may cause the popup menu to flicker.
Solution: Avoid updating the text below the popup menu before drawing the
popup menu.
diff --git a/src/screen.c b/src/screen.c
index cd146fd..1b53ae2 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -183,7 +183,7 @@
/*
* Redraw the current window later, with update_screen(type).
* Set must_redraw only if not already set to a higher value.
- * e.g. if must_redraw is CLEAR, type NOT_VALID will do nothing.
+ * E.g. if must_redraw is CLEAR, type NOT_VALID will do nothing.
*/
void
redraw_later(int type)
@@ -8475,6 +8475,10 @@
if (row >= screen_Rows || col >= screen_Columns)
return;
+#ifdef FEAT_INS_EXPAND
+ if (pum_under_menu(row, col))
+ return;
+#endif
/* Outputting a character in the last cell on the screen may scroll the
* screen up. Only do it when the "xn" termcap property is set, otherwise
* mark the character invalid (update it when scrolled up). */