Skip to content

Commit

Permalink
Pass whole numbers to PrefixSumComputer for nb (#226568)
Browse files Browse the repository at this point in the history
Pass whole numbers to PrefixSumComputer for mbÏ
  • Loading branch information
DonJayamanne authored Aug 26, 2024
1 parent 214bf83 commit 727dbd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export class NotebookCellsLayout implements IRangeMap {
return this.count;
}

return this._prefixSumComputer.getIndexOf(offset).index;
return this._prefixSumComputer.getIndexOf(Math.trunc(offset)).index;
}

indexAfter(position: number): number {
Expand Down

0 comments on commit 727dbd6

Please sign in to comment.