diff --git a/addons/xterm-addon-search/src/SearchAddon.ts b/addons/xterm-addon-search/src/SearchAddon.ts index d8266e02a0..e89cdd5a8a 100644 --- a/addons/xterm-addon-search/src/SearchAddon.ts +++ b/addons/xterm-addon-search/src/SearchAddon.ts @@ -92,6 +92,7 @@ export class SearchAddon implements ITerminalAddon { private _disposeDecorations(): void { this._resultDecorations.forEach(decorations => { for (const d of decorations) { + console.log('dispose', d); d.dispose(); } }); @@ -189,9 +190,6 @@ export class SearchAddon implements ITerminalAddon { } } } - if (result && searchOptions?.decorations) { - this._createResultDecoration(result, searchOptions?.decorations); - } return result; } @@ -646,6 +644,7 @@ export class SearchAddon implements ITerminalAddon { if (!marker || !decorations?.matchColor) { return undefined; } + console.trace('create find result at', marker.line); const findResultDecoration = terminal.registerDecoration( { marker, overviewRulerOptions: this._resultDecorations.get(marker.line) && !this._dataChanged ? undefined : { color: decorations.matchColor, position: 'center' }