Skip to content

Commit 9cf611b

Browse files
committed
Revert change to EndLocation as it was incorrectly changed.
1 parent 904fd19 commit 9cf611b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Razor/Microsoft.AspNetCore.Razor.Language/src/Legacy/LineTrackingStringBuffer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public int Length
3535

3636
public SourceLocation EndLocation
3737
{
38-
get { return new SourceLocation(_filePath, Length, _lines.Count - 1, Length); }
38+
get { return new SourceLocation(_filePath, Length, _lines.Count - 1, _lines[_lines.Count - 1].Length); }
3939
}
4040

4141
public CharacterReference CharAt(int absoluteIndex)

0 commit comments

Comments
 (0)