Skip to content

Commit

Permalink
- Fixed a bug caused scrollbar markers went wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Jul 18, 2022
1 parent 09ffb12 commit 41ad987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Codist/Margins/CommentMarginElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void DrawMarkers(DrawingContext drawingContext) {
if (ClassificationBrushMapper.TryGetValue(c, out b) == false) {
continue;
}
var y = _ScrollBar.GetYCoordinateOfBufferPosition(new SnapshotPoint(snapshot, tag.Start));
var y = _ScrollBar.GetYCoordinateOfBufferPosition(tag.TrackingSpan.GetStartPoint(snapshot));
if (lastY + HalfMarkSize > y && lastBrush == b) {
// avoid drawing too many closed markers
continue;
Expand Down

0 comments on commit 41ad987

Please sign in to comment.