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/edit.c | |
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/edit.c')
-rw-r--r-- | src/edit.c | 4 |
1 files changed, 1 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 { |