From 5831b2c49411f1711fdfcaa62b8b46e95432387f Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 6 Oct 2026 20:33:41 +0200 Subject: [PATCH] Fix incorrect offset in search popup results highlights --- Source/Editor/GUI/ItemsListContextMenu.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/GUI/ItemsListContextMenu.cs b/Source/Editor/GUI/ItemsListContextMenu.cs index 95a9a2164..939635976 100644 --- a/Source/Editor/GUI/ItemsListContextMenu.cs +++ b/Source/Editor/GUI/ItemsListContextMenu.cs @@ -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) {