Mercurial > vim
diff src/ex_getln.c @ 3374:791baa7b35e1 v7.3.453
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 22 Feb 2012 17:58:04 +0100 |
parents | 9ccdc4a69d8f |
children | d1096a4e96bd |
line wrap: on
line diff
--- 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 }