summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-07-06 13:36:48 +0200
committerBram Moolenaar <Bram@vim.org>2012-07-06 13:36:48 +0200
commit5967abb97fa3bb191b267bacfa096d4dd99f3e6d (patch)
tree0d7c2d12a950e7b171de0dbb8d8992c466c4c883
parent221d6872c432842534b302da4670014c29588566 (diff)
downloadvim-5967abb97fa3bb191b267bacfa096d4dd99f3e6d.zip
updated for version 7.3.585
Problem: Calling changed_bytes() too often. Solution: Move changed_bytes() out of a loop. (Tor Perkins)
-rw-r--r--src/edit.c4
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/edit.c b/src/edit.c
index 78b4d1c24..bcae92888 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 526669d22..1b4fe402e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 585,
+/**/
584,
/**/
583,