This commit is contained in:
meganrogge
2022-03-16 13:40:06 -04:00
parent e293d29fd3
commit a4212e98d2
2 changed files with 1 additions and 6 deletions
+1 -5
View File
@@ -548,11 +548,7 @@ function addDecoration() {
term.options['overviewRulerWidth'] = 15;
const marker = term.addMarker(1);
const decoration = term.registerDecoration({ marker, overviewRulerOptions: { color: '#ef2929'} });
decoration.onRender((e) => {
if (e.classList.value === 'xterm-decoration') {
e.style.backgroundColor = '#ef2929';
}
});
decoration.onRender((e) => e.style.backgroundColor = '#ef2929');
}
function addOverviewRuler() {
@@ -121,7 +121,6 @@ export class OverviewRulerRenderer extends Disposable {
this._decorationElements.set(decoration, this._canvas);
}
this._refreshStyle(decoration, updateAnchor);
decoration.onRenderEmitter.fire(this._canvas);
}
private _queueRefresh(updateCanvasDimensions?: boolean, updateAnchor?: boolean): void {