summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-02-22 17:58:04 +0100
committerBram Moolenaar <Bram@vim.org>2012-02-22 17:58:04 +0100
commit58437e0409e35852c32f8633bdc0a3daa01e001d (patch)
tree9c3e6a04b947789fad02b4bb27f27d8b94710d0a /src/ex_getln.c
parent5f1e3e4473ed4364abc9f45f61e1530f70c82194 (diff)
downloadvim-git-58437e0409e35852c32f8633bdc0a3daa01e001d.tar.gz
updated for version 7.3.453v7.3.453
Problem: Pasting in the command line is slow. Solution: Don't redraw if there is another character to read. (Dominique Pelle)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 1f5c873da..f811889d3 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -1852,8 +1852,11 @@ cmdline_changed:
# 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
}