mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
clean up
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -180,9 +180,9 @@
|
||||
}
|
||||
|
||||
.xterm-find-result-decoration {
|
||||
background-color: grey;
|
||||
opacity: 60%;
|
||||
}
|
||||
|
||||
.xterm-decoration-overview-ruler {
|
||||
z-index: 7;
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user