patch 8.0.1449: slow redrawing with DirectX
Problem: Slow redrawing with DirectX.
Solution: Avoid calling gui_mch_flush() unnecessarily, especially when
updating the cursor. (Ken Takata, closes #2560)
diff --git a/src/channel.c b/src/channel.c
index f7eded2..138b12e 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -2207,14 +2207,7 @@
ex_redraw(&ea);
showruler(FALSE);
setcursor();
- out_flush();
-#ifdef FEAT_GUI
- if (gui.in_use)
- {
- gui_update_cursor(TRUE, FALSE);
- gui_mch_flush();
- }
-#endif
+ out_flush_cursor(TRUE, FALSE);
}
else if (STRCMP(cmd, "expr") == 0 || STRCMP(cmd, "call") == 0)
{