Skip to content

Commit 8ac2f6c

Browse files
fdohrendorfGDustinCampbell
authored andcommitted
fix-text-differ
1 parent 512e5f8 commit 8ac2f6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/TextDifferencing/TextDiffer.IntArray.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public ref int this[int index]
118118
// Does this index fall within page? If not, acquire the appropriate page.
119119
if (index < page.Start || index >= page.Start + page.Length)
120120
{
121-
page = _pages[index % PageSize];
121+
page = _pages[index / PageSize];
122122
_page = page;
123123
}
124124

0 commit comments

Comments
 (0)