Missed a minor optimization as I wasn't using a parameter for the binary search method. The files I've opened don't actually hit the code path (they always hit the optimization for checking the previous/next/current line)

\n\nCommit migrated from 75f34eec60
This commit is contained in:
Todd Grunke 2020-05-07 20:44:15 -07:00
parent 069b409dd4
commit c027fcf8e6
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
{
// binary search for the line containing absoluteIndex
var lowIndex = startLineIndex;
var highIndex = _lines.Count;
var highIndex = endLineIndex;
while (lowIndex != highIndex)
{