comparison 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
comparison
equal deleted inserted replaced
3373:614f664ac244 3374:791baa7b35e1
1850 # ifdef FEAT_ARABIC 1850 # ifdef FEAT_ARABIC
1851 || (p_arshape && !p_tbidi && enc_utf8) 1851 || (p_arshape && !p_tbidi && enc_utf8)
1852 # endif 1852 # endif
1853 ) 1853 )
1854 /* Always redraw the whole command line to fix shaping and 1854 /* Always redraw the whole command line to fix shaping and
1855 * right-left typing. Not efficient, but it works. */ 1855 * right-left typing. Not efficient, but it works.
1856 redrawcmd(); 1856 * Do it only when there are no characters left to read
1857 * to avoid useless intermediate redraws. */
1858 if (vpeekc() == NUL)
1859 redrawcmd();
1857 #endif 1860 #endif
1858 } 1861 }
1859 1862
1860 returncmd: 1863 returncmd:
1861 1864