_line fixes
This commit is contained in:
@@ -561,7 +561,7 @@ namespace FlaxEditor.Windows
|
|||||||
{
|
{
|
||||||
ref var line = ref lines[j];
|
ref var line = ref lines[j];
|
||||||
textBlock.Range.StartIndex = startIndex + line.FirstCharIndex;
|
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);
|
textBlock.Bounds = new Rectangle(new Float2(0.0f, prevBlockBottom), line.Size);
|
||||||
|
|
||||||
if (textBlock.Range.Length > 0)
|
if (textBlock.Range.Length > 0)
|
||||||
@@ -570,7 +570,7 @@ namespace FlaxEditor.Windows
|
|||||||
var regexStart = line.FirstCharIndex;
|
var regexStart = line.FirstCharIndex;
|
||||||
if (j == 0)
|
if (j == 0)
|
||||||
regexStart += prefixLength;
|
regexStart += prefixLength;
|
||||||
var regexLength = line.LastCharIndex + 1 - regexStart;
|
var regexLength = line.LastCharIndex - regexStart;
|
||||||
if (regexLength > 0)
|
if (regexLength > 0)
|
||||||
{
|
{
|
||||||
var match = _compileRegex.Match(entryText, regexStart, regexLength);
|
var match = _compileRegex.Match(entryText, regexStart, regexLength);
|
||||||
|
|||||||
Reference in New Issue
Block a user