fix(addon-search): apply active result decoration CSS class

Pass isActiveResult through to _applyStyles in onRender so active matches
receive xterm-find-active-result-decoration.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Daniel Imms
2026-05-25 17:37:45 -07:00
co-authored by Cursor
parent 865f835a5e
commit 0b1cacd1a5
+1 -1
View File
@@ -145,7 +145,7 @@ export class DecorationManager extends Disposable {
if (decoration) {
const disposables: IDisposable[] = [];
disposables.push(marker);
disposables.push(decoration.onRender((e) => this._applyStyles(e, isActiveResult ? options.activeMatchBorder : options.matchBorder, false)));
disposables.push(decoration.onRender((e) => this._applyStyles(e, isActiveResult ? options.activeMatchBorder : options.matchBorder, isActiveResult)));
disposables.push(decoration.onDispose(() => dispose(disposables)));
decorations.push(decoration);
}