updated for version 7.0185
diff --git a/src/screen.c b/src/screen.c
index fb55934..c067d92 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -8482,8 +8482,10 @@
 #ifdef FEAT_INS_EXPAND
     if (pum_visible())
     {
+# ifdef FEAT_WINDOWS
 	/* Don't redraw right now, do it later. */
 	curwin->w_redr_status = TRUE;
+# endif
 	return;
     }
 #endif