fix: inline blocks is not sorted in order (#1274)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-05-03 20:51:07 +08:00
parent 007acb3fa6
commit 8c1d397480
No known key found for this signature in database

View file

@ -178,6 +178,7 @@ namespace SourceGit.Views
foreach (var rule in rules) foreach (var rule in rules)
rule.Matches(_elements, subject); rule.Matches(_elements, subject);
_elements.Sort((l, r) => l.Start - r.Start);
_needRebuildInlines = true; _needRebuildInlines = true;
InvalidateVisual(); InvalidateVisual();
} }