From 5967abb97fa3bb191b267bacfa096d4dd99f3e6d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 6 Jul 2012 13:36:48 +0200 Subject: [PATCH] updated for version 7.3.585 Problem: Calling changed_bytes() too often. Solution: Move changed_bytes() out of a loop. (Tor Perkins) --- src/edit.c | 4 +--- src/version.c | 2 ++ 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 @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 585, /**/ 584, /**/ -- 2.50.1