Skip to content

Commit

Permalink
use the end of the span instead of the start to determine line position
Browse files Browse the repository at this point in the history
  • Loading branch information
akhera99 committed Dec 17, 2021
1 parent 3c59022 commit 35b0a04
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ protected override void AddAdornmentsToAdornmentLayer_CallOnlyOnUIThread(Normali
}

// Need to get the SnapshotPoint to be able to get the IWpfTextViewLine
var point = tagMappingSpan.Span.Start.GetPoint(TextView.TextSnapshot, PositionAffinity.Predecessor);
var point = tagMappingSpan.Span.End.GetPoint(TextView.TextSnapshot, PositionAffinity.Predecessor);
if (point == null)
{
continue;
Expand Down

0 comments on commit 35b0a04

Please sign in to comment.