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._onDataDisposable = this._terminal.onData(() => {
|
||||||
this._dataChanged = true;
|
this._dataChanged = true;
|
||||||
setTimeout(() => {
|
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');
|
this._highlightAllMatches(this._cachedSearchTerm, this._lastSearchOptions,'previous');
|
||||||
}
|
}
|
||||||
}, 200);
|
}, 200);
|
||||||
|
|||||||
Reference in New Issue
Block a user