Skip to content

Commit 52b3c84

Browse files
committed
Fix parameter to Replace
1 parent c085220 commit 52b3c84

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)