Skip to content

Commit f42ddd8

Browse files
committed
fix: hightlight background not updated (#448)
1 parent 2e2c443 commit f42ddd8

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/Views/Blame.axaml.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -321,17 +321,8 @@ private void OnTextAreaLayoutUpdated(object sender, EventArgs e)
321321
if (caret == null || caret.Line >= BlameData.LineInfos.Count)
322322
return;
323323

324-
var info = BlameData.LineInfos[caret.Line - 1];
325-
if (_highlight != info.CommitSHA)
326-
{
327-
_highlight = info.CommitSHA;
328-
InvalidateVisual();
329-
return;
330-
}
331-
332-
var offset = TextArea.TextView.VerticalOffset;
333-
if (_lastOffsetY != offset)
334-
InvalidateVisual();
324+
_highlight = BlameData.LineInfos[caret.Line - 1].CommitSHA;
325+
InvalidateVisual();
335326
}
336327

337328
private void OnTextAreaPointerWheelChanged(object sender, PointerWheelEventArgs e)
@@ -385,7 +376,6 @@ private void OnTextViewVisualLinesChanged(object sender, EventArgs e)
385376

386377
private TextMate.Installation _textMate = null;
387378
private string _highlight = string.Empty;
388-
private double _lastOffsetY = 0;
389379
}
390380

391381
public partial class Blame : ChromelessWindow

0 commit comments

Comments
 (0)