updated for version 7.3.453
Problem: Pasting in the command line is slow.
Solution: Don't redraw if there is another character to read. (Dominique
Pelle)
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 1f5c873..f811889 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -1852,8 +1852,11 @@
# endif
)
/* Always redraw the whole command line to fix shaping and
- * right-left typing. Not efficient, but it works. */
- redrawcmd();
+ * right-left typing. Not efficient, but it works.
+ * Do it only when there are no characters left to read
+ * to avoid useless intermediate redraws. */
+ if (vpeekc() == NUL)
+ redrawcmd();
#endif
}