fix: Address review
Co-authored-by: Daniel Peñalba <daniel.penalba@unity3d.com>
This commit is contained in:
Родитель
68334d76b7
Коммит
acb87a2097
|
@ -168,7 +168,9 @@ namespace AvaloniaEdit.TextMate
|
|||
|
||||
try
|
||||
{
|
||||
InvalidateLineRange(_invalidRange.StartLine < _documentSnapshot.LineCount ? _invalidRange.StartLine : _document.LineCount - 1, _invalidRange.EndLine < _documentSnapshot.LineCount ? _invalidRange.EndLine : _documentSnapshot.LineCount - 1);
|
||||
int startLine = Math.Clamp(_invalidRange.StartLine, 0, _documentSnapshot.LineCount - 1);
|
||||
int endLine = Math.Clamp(_invalidRange.EndLine, 0, _documentSnapshot.LineCount - 1);
|
||||
InvalidateLineRange(startLine, endLine);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче