diff --git a/addons/xterm-addon-search/src/SearchAddon.ts b/addons/xterm-addon-search/src/SearchAddon.ts index 00e6830f..32441f1c 100644 --- a/addons/xterm-addon-search/src/SearchAddon.ts +++ b/addons/xterm-addon-search/src/SearchAddon.ts @@ -62,7 +62,6 @@ export class SearchAddon implements ITerminalAddon { public activate(terminal: Terminal): void { this._terminal = terminal; - // TODO: should this be using on buffer changed instead? this._terminal.onData(() => this._dataChanged = true); } @@ -578,8 +577,9 @@ export class SearchAddon implements ITerminalAddon { // decoration's clientWidth = actualCellWidth e.style.left = `${e.clientWidth * result.col}px`; e.style.width = `${e.clientWidth * result.term.length}px`; - } - }); + e.style.backgroundColor = color; + e.style.color = color; + }}); return findResultDecoration; } } diff --git a/css/xterm.css b/css/xterm.css index f8f85f9e..aa58915c 100644 --- a/css/xterm.css +++ b/css/xterm.css @@ -180,9 +180,9 @@ } .xterm-find-result-decoration { - background-color: grey; opacity: 60%; } + .xterm-decoration-overview-ruler { z-index: 7; position: absolute;