Skip to content

Commit 5678dff

Browse files
committed
small fix
1 parent b8759fe commit 5678dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/addon-search/src/SearchAddon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class SearchAddon extends Disposable implements ITerminalAddon , ISearchA
160160
}
161161
private _chunkDisposeDecoration(matchesWithHighlightApplied: IHighlight[]): void{
162162

163-
const numberOfElementsToDispose = Performance.CHUNK_SIZE > matchesWithHighlightApplied.length ? matchesWithHighlightApplied.length : CHUNK_SIZE;
163+
const numberOfElementsToDispose = Performance.CHUNK_SIZE > matchesWithHighlightApplied.length ? matchesWithHighlightApplied.length : Performance.CHUNK_SIZE;
164164

165165
for (let i=0;i<numberOfElementsToDispose;i++){
166166
matchesWithHighlightApplied.pop()?.dispose();

0 commit comments

Comments
 (0)