Skip to content

Commit

Permalink
Fix one-based-line numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
david-driscoll committed Jul 7, 2015
1 parent 2612888 commit fc371d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public async Task<HighlightResponse> Highlight(HighlightRequest request)
{
var linesToClassify = request.Lines.Join(
text.Lines,
line => line,
line => line - 1,
line => line.LineNumber,
(requestLine, line) => line.Span);
foreach (var lineSpan in linesToClassify)
Expand Down

0 comments on commit fc371d5

Please sign in to comment.