enhance: render highlight background manually instead of using TextRunProperties.SetBackgroundBrush(IBrush) (#364)

This commit is contained in:
leo 2024-08-16 18:59:48 +08:00
parent 9f39a9b295
commit ed7465def5
No known key found for this signature in database
2 changed files with 46 additions and 14 deletions

View file

@ -19,8 +19,8 @@ namespace SourceGit.Models
public class TextInlineRange
{
public int Start { get; set; }
public int Count { get; set; }
public TextInlineRange(int p, int n) { Start = p; Count = n; }
public int End { get; set; }
public TextInlineRange(int p, int n) { Start = p; End = p + n - 1; }
}
public class TextDiffLine