Skip to content

Commit 19611ad

Browse files
committed
Merge pull request #82 from anakic/FixIndentLineBug
Fix parameter to Replace
2 parents 4e69c3c + 52b3c84 commit 19611ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ICSharpCode.AvalonEdit/Indentation/DefaultIndentationStrategy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public virtual void IndentLine(TextDocument document, DocumentLine line)
4141
string indentation = document.GetText(indentationSegment);
4242
// copy indentation to line
4343
indentationSegment = TextUtilities.GetWhitespaceAfter(document, line.Offset);
44-
document.Replace(indentationSegment.Offset, indentation.Length, indentation,
44+
document.Replace(indentationSegment.Offset, indentationSegment.Length, indentation,
4545
OffsetChangeMappingType.RemoveAndInsert);
4646
// OffsetChangeMappingType.RemoveAndInsert guarantees the caret moves behind the new indentation.
4747
}

0 commit comments

Comments
 (0)