Update addons/xterm-addon-search/src/SearchAddon.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
This commit is contained in:
Megan Rogge
2022-03-21 15:35:01 -04:00
committed by GitHub
co-authored by Daniel Imms
parent 4cea6b3f41
commit 64d5af38f5
+1 -1
View File
@@ -70,7 +70,7 @@ export class SearchAddon implements ITerminalAddon {
this._dataChanged = true;
setTimeout(() => {
if (this._lastSearchOptions?.decorations && this._cachedSearchTerm && this._resultDecorations.size > 0 && this._lastSearchOptions) {
this._highlightAllMatches(this._cachedSearchTerm, this._lastSearchOptions,'previous');
this._highlightAllMatches(this._cachedSearchTerm, this._lastSearchOptions, 'previous');
}
}, 200);
});