mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.3.585
Problem: Calling changed_bytes() too often. Solution: Move changed_bytes() out of a loop. (Tor Perkins)
This commit is contained in:
parent
221d6872c4
commit
5967abb97f
@ -6350,10 +6350,8 @@ internal_format(textwidth, second_indent, flags, format_only, c)
|
|||||||
* add the additional whitespace needed after the
|
* add the additional whitespace needed after the
|
||||||
* comment leader for the numbered list. */
|
* comment leader for the numbered list. */
|
||||||
for (i = 0; i < padding; i++)
|
for (i = 0; i < padding; i++)
|
||||||
{
|
|
||||||
ins_str((char_u *)" ");
|
ins_str((char_u *)" ");
|
||||||
changed_bytes(curwin->w_cursor.lnum, leader_len);
|
changed_bytes(curwin->w_cursor.lnum, leader_len);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
585,
|
||||||
/**/
|
/**/
|
||||||
584,
|
584,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user