updated for version 7.0027
diff --git a/src/main.c b/src/main.c
index 78639a2..7ab914c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3158,7 +3158,7 @@
     }
     /* Bring the window to the foreground, goto Insert mode when 'im' set and
      * clear command line. */
-    ga_concat(&ga, (char_u *)"cal foreground()|if &im|star|en|ec<CR>");
+    ga_concat(&ga, (char_u *)"cal foreground()|if &im|star|en|redr|f<CR>");
     ga_append(&ga, NUL);
     return ga.ga_data;
 }