Skip to content

Commit

Permalink
fix #141368. Overflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Jan 26, 2022
1 parent dbf955b commit 17a0714
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export class FindModel extends Disposable {

private _updateCurrentMatch(findMatches: CellFindMatchWithIndex[], currentMatchesPosition: number) {
this.set(findMatches, false);
this._currentMatch = currentMatchesPosition;
this._currentMatch = currentMatchesPosition % findMatches.length;
const nextIndex = this._findMatchesStarts!.getIndexOf(this._currentMatch);
this.highlightCurrentFindMatchDecoration(nextIndex.index, nextIndex.remainder);

Expand Down

0 comments on commit 17a0714

Please sign in to comment.