Skip to content

Commit 23245e6

Browse files
Merge pull request #8231 from DustinCampbell/port-textdiffer-fix
Port SourceTextDiffer fix to release/17.6
2 parents 512e5f8 + 8ac2f6c commit 23245e6

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)