diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-07-06 13:36:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-07-06 13:36:48 +0200 |
commit | 5967abb97fa3bb191b267bacfa096d4dd99f3e6d (patch) | |
tree | 0d7c2d12a950e7b171de0dbb8d8992c466c4c883 /src | |
parent | 221d6872c432842534b302da4670014c29588566 (diff) |
updated for version 7.3.585v7.3.585
Problem: Calling changed_bytes() too often.
Solution: Move changed_bytes() out of a loop. (Tor Perkins)
Diffstat (limited to 'src')
-rw-r--r-- | src/edit.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 3 deletions
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 @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 585, +/**/ 584, /**/ 583, |