]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.453 v7.3.453
authorBram Moolenaar <Bram@vim.org>
Wed, 22 Feb 2012 16:58:04 +0000 (17:58 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 22 Feb 2012 16:58:04 +0000 (17:58 +0100)
Problem:    Pasting in the command line is slow.
Solution:   Don't redraw if there is another character to read. (Dominique
            Pelle)

src/ex_getln.c
src/version.c

index 1f5c873dac8e7a0da5067e1784c78329146cea0f..f811889d31c34df2f675664c0cc113c726dc73bb 100644 (file)
@@ -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
     }
 
index 0b6c063b38a933b158e1e3c4bf4a365b093a7f01..c3d3555ab391c1f41e05bcfffe080ef76b14f0f2 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    453,
 /**/
     452,
 /**/