mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
only highlight all matches when decorations are requested
This commit is contained in:
@@ -69,7 +69,7 @@ export class SearchAddon implements ITerminalAddon {
|
||||
this._onDataDisposable = this._terminal.onData(() => {
|
||||
this._dataChanged = true;
|
||||
setTimeout(() => {
|
||||
if (this._cachedSearchTerm && this._resultDecorations.size > 0 && this._lastSearchOptions) {
|
||||
if (this._lastSearchOptions?.decorations && this._cachedSearchTerm && this._resultDecorations.size > 0 && this._lastSearchOptions) {
|
||||
this._highlightAllMatches(this._cachedSearchTerm, this._lastSearchOptions,'previous');
|
||||
}
|
||||
}, 200);
|
||||
|
||||
Reference in New Issue
Block a user