Merge pull request #2550 from Tyriar/2549_refresh_options
Refresh rows on options change for all renderers
This commit is contained in:
@@ -189,7 +189,6 @@ export class WebglRenderer extends Disposable implements IRenderer {
|
|||||||
this._rectangleRenderer.updateSelection(this._model.selection, columnSelectMode);
|
this._rectangleRenderer.updateSelection(this._model.selection, columnSelectMode);
|
||||||
this._glyphRenderer.updateSelection(this._model, columnSelectMode);
|
this._glyphRenderer.updateSelection(this._model, columnSelectMode);
|
||||||
|
|
||||||
// TODO: #2102 Should this move to RenderCoordinator?
|
|
||||||
this._onRequestRefreshRows.fire({ start: 0, end: this._terminal.rows - 1 });
|
this._onRequestRefreshRows.fire({ start: 0, end: this._terminal.rows - 1 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -340,7 +340,6 @@ export class DomRenderer extends Disposable implements IRenderer {
|
|||||||
// Force a refresh
|
// Force a refresh
|
||||||
this._updateDimensions();
|
this._updateDimensions();
|
||||||
this._injectCss();
|
this._injectCss();
|
||||||
this._onRequestRefreshRows.fire({ start: 0, end: this._bufferService.rows - 1 });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public clear(): void {
|
public clear(): void {
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ export class RenderService extends Disposable implements IRenderService {
|
|||||||
|
|
||||||
public changeOptions(): void {
|
public changeOptions(): void {
|
||||||
this._renderer.onOptionsChanged();
|
this._renderer.onOptionsChanged();
|
||||||
|
this.refreshRows(0, this._rowCount - 1);
|
||||||
this._fireOnCanvasResize();
|
this._fireOnCanvasResize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user