# HG changeset patch # User Bram Moolenaar # Date 1341574608 -7200 # Node ID d258a0c5c38a6a604b983b6499a0f02bc061c816 # Parent 8af0aad3d4eba2e693a07a3c15ccca7a62df1793 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 --- a/src/edit.c +++ b/src/edit.c @@ -6350,10 +6350,8 @@ internal_format(textwidth, second_indent * 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 --- 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,