From: Bram Moolenaar Date: Fri, 6 Jul 2012 11:36:48 +0000 (+0200) Subject: updated for version 7.3.585 X-Git-Tag: v7.3.585 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5967abb97fa3bb191b267bacfa096d4dd99f3e6d;p=thirdparty%2Fvim.git updated for version 7.3.585 Problem: Calling changed_bytes() too often. Solution: Move changed_bytes() out of a loop. (Tor Perkins) --- diff --git a/src/edit.c b/src/edit.c index 78b4d1c245..bcae92888f 100644 --- a/src/edit.c +++ b/src/edit.c @@ -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 { diff --git a/src/version.c b/src/version.c index 526669d22b..1b4fe402e7 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 585, /**/ 584, /**/