Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Commit 8c8992f

Browse files
committed
Reacting to ICompilationMessage line indexes changing to be 1-based.
1 parent a8d5bb9 commit 8c8992f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.AspNet.Mvc.Razor/Compilation/RazorCompilationMessage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public RazorCompilationMessage(
2929
$"{sourceFilePath} ({location.LineIndex},{location.CharacterIndex}) {razorError.Message}";
3030

3131
StartColumn = location.CharacterIndex;
32-
StartLine = location.LineIndex;
32+
StartLine = location.LineIndex + 1;
3333
EndColumn = location.CharacterIndex + razorError.Length;
34-
EndLine = location.LineIndex;
34+
EndLine = location.LineIndex + 1;
3535
}
3636

3737
/// <summary>

0 commit comments

Comments
 (0)