Skip to content

Commit 8c1d397

Browse files
committed
fix: inline blocks is not sorted in order (#1274)
Signed-off-by: leo <[email protected]>
1 parent 007acb3 commit 8c1d397

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Views/CommitSubjectPresenter.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
177177
var rules = IssueTrackerRules ?? [];
178178
foreach (var rule in rules)
179179
rule.Matches(_elements, subject);
180-
180+
181+
_elements.Sort((l, r) => l.Start - r.Start);
181182
_needRebuildInlines = true;
182183
InvalidateVisual();
183184
}

0 commit comments

Comments
 (0)