diff --git a/addons/xterm-addon-search/src/SearchAddon.ts b/addons/xterm-addon-search/src/SearchAddon.ts index 7ec081f5..33e38e95 100644 --- a/addons/xterm-addon-search/src/SearchAddon.ts +++ b/addons/xterm-addon-search/src/SearchAddon.ts @@ -133,7 +133,9 @@ export class SearchAddon implements ITerminalAddon { this._resultDecorations.set(resultDecoration.marker.line, decorationsForLine); } }); - this._dataChanged = false; + if (this._dataChanged) { + this._dataChanged = false; + } if (this._searchResults.size > 0) { this._cachedSearchTerm = term; }