From 9cf611b9e2b0264c44bcc061d6e5c8020f1d559d Mon Sep 17 00:00:00 2001 From: Todd Grunke Date: Fri, 12 Jun 2020 08:28:32 -0700 Subject: [PATCH] Revert change to EndLocation as it was incorrectly changed. --- .../src/Legacy/LineTrackingStringBuffer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Legacy/LineTrackingStringBuffer.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Legacy/LineTrackingStringBuffer.cs index 2af16c0481..a235bb482b 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Legacy/LineTrackingStringBuffer.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Legacy/LineTrackingStringBuffer.cs @@ -35,7 +35,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy public SourceLocation EndLocation { - get { return new SourceLocation(_filePath, Length, _lines.Count - 1, Length); } + get { return new SourceLocation(_filePath, Length, _lines.Count - 1, _lines[_lines.Count - 1].Length); } } public CharacterReference CharAt(int absoluteIndex)