From 70d7e9204aec033352374e74dcc1d9ae1f50aa31 Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Wed, 13 Sep 2023 17:00:31 +0300 Subject: [PATCH] _line fixes --- Source/Editor/Windows/OutputLogWindow.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Editor/Windows/OutputLogWindow.cs b/Source/Editor/Windows/OutputLogWindow.cs index cd76412c8..c6164f8e3 100644 --- a/Source/Editor/Windows/OutputLogWindow.cs +++ b/Source/Editor/Windows/OutputLogWindow.cs @@ -561,7 +561,7 @@ namespace FlaxEditor.Windows { ref var line = ref lines[j]; textBlock.Range.StartIndex = startIndex + line.FirstCharIndex; - textBlock.Range.EndIndex = startIndex + line.LastCharIndex + 1; + textBlock.Range.EndIndex = startIndex + line.LastCharIndex; textBlock.Bounds = new Rectangle(new Float2(0.0f, prevBlockBottom), line.Size); if (textBlock.Range.Length > 0) @@ -570,7 +570,7 @@ namespace FlaxEditor.Windows var regexStart = line.FirstCharIndex; if (j == 0) regexStart += prefixLength; - var regexLength = line.LastCharIndex + 1 - regexStart; + var regexLength = line.LastCharIndex - regexStart; if (regexLength > 0) { var match = _compileRegex.Match(entryText, regexStart, regexLength);