mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 18:30:34 +08:00
fix: hightlight background not updated (#448)
This commit is contained in:
@@ -321,17 +321,8 @@ namespace SourceGit.Views
|
||||
if (caret == null || caret.Line >= BlameData.LineInfos.Count)
|
||||
return;
|
||||
|
||||
var info = BlameData.LineInfos[caret.Line - 1];
|
||||
if (_highlight != info.CommitSHA)
|
||||
{
|
||||
_highlight = info.CommitSHA;
|
||||
InvalidateVisual();
|
||||
return;
|
||||
}
|
||||
|
||||
var offset = TextArea.TextView.VerticalOffset;
|
||||
if (_lastOffsetY != offset)
|
||||
InvalidateVisual();
|
||||
_highlight = BlameData.LineInfos[caret.Line - 1].CommitSHA;
|
||||
InvalidateVisual();
|
||||
}
|
||||
|
||||
private void OnTextAreaPointerWheelChanged(object sender, PointerWheelEventArgs e)
|
||||
@@ -385,7 +376,6 @@ namespace SourceGit.Views
|
||||
|
||||
private TextMate.Installation _textMate = null;
|
||||
private string _highlight = string.Empty;
|
||||
private double _lastOffsetY = 0;
|
||||
}
|
||||
|
||||
public partial class Blame : ChromelessWindow
|
||||
|
||||
Reference in New Issue
Block a user