Bring back respecting of cached search term

This commit is contained in:
Daniel Imms
2025-09-26 17:09:54 +09:00
parent ffd6dc6ab7
commit d11f411c17
2 changed files with 21 additions and 12 deletions
+2 -2
View File
@@ -157,7 +157,7 @@ export class SearchAddon extends Disposable implements ITerminalAddon, ISearchAp
return false;
}
const result = this._engine.findNextWithSelection(term, searchOptions);
const result = this._engine.findNextWithSelection(term, searchOptions, this._state.cachedSearchTerm);
return this._selectResult(result, searchOptions?.decorations, internalSearchOptions?.noScroll);
}
@@ -200,7 +200,7 @@ export class SearchAddon extends Disposable implements ITerminalAddon, ISearchAp
return false;
}
const result = this._engine.findPreviousWithSelection(term, searchOptions);
const result = this._engine.findPreviousWithSelection(term, searchOptions, this._state.cachedSearchTerm);
return this._selectResult(result, searchOptions?.decorations, internalSearchOptions?.noScroll);
}