]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.585 v7.3.585
authorBram Moolenaar <Bram@vim.org>
Fri, 6 Jul 2012 11:36:48 +0000 (13:36 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 6 Jul 2012 11:36:48 +0000 (13:36 +0200)
Problem:    Calling changed_bytes() too often.
Solution:   Move changed_bytes() out of a loop. (Tor Perkins)

src/edit.c
src/version.c

index 78b4d1c24507020885ebe15fd0183ab8c96b4e9e..bcae92888f3b17462083d05327ef3072d229b1ee 100644 (file)
@@ -6350,10 +6350,8 @@ internal_format(textwidth, second_indent, flags, format_only, c)
                         * add the additional whitespace needed after the
                         * comment leader for the numbered list.  */
                        for (i = 0; i < padding; i++)
-                       {
                            ins_str((char_u *)" ");
-                           changed_bytes(curwin->w_cursor.lnum, leader_len);
-                       }
+                       changed_bytes(curwin->w_cursor.lnum, leader_len);
                    }
                    else
                    {
index 526669d22b268b6fce9a68ad7e3bbff81951e2b4..1b4fe402e7951ee8e3ffb345967524257c0d6af7 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    585,
 /**/
     584,
 /**/