mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
fix: hightlight background not updated (#448)
This commit is contained in:
parent
2e2c443b5d
commit
f42ddd8cee
1 changed files with 2 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue