Fix incorrect offset in search popup results highlights

This commit is contained in:
2026-10-06 20:33:41 +02:00
parent c4a6fc5a24
commit 5831b2c494
+1 -1
View File
@@ -126,7 +126,7 @@ namespace FlaxEditor.GUI
{
var start = font.GetCharPosition(Name, ranges[i].StartIndex);
var end = font.GetCharPosition(Name, ranges[i].EndIndex);
_highlights.Add(new Rectangle(start.X + 2, 0, end.X - start.X, Height));
_highlights.Add(new Rectangle(start.X, 0, end.X - start.X, Height));
if (ranges[i].StartIndex <= 0)
{