Merge pull request #4659 from SvanT/dispose-blink-state-manager
Dispose blink state manager
This commit is contained in:
@@ -365,9 +365,9 @@ export class WebglRenderer extends Disposable implements IRenderer {
|
|||||||
private _updateCursorBlink(): void {
|
private _updateCursorBlink(): void {
|
||||||
if (this._terminal.options.cursorBlink) {
|
if (this._terminal.options.cursorBlink) {
|
||||||
if (!this._cursorBlinkStateManager) {
|
if (!this._cursorBlinkStateManager) {
|
||||||
this._cursorBlinkStateManager = new CursorBlinkStateManager(() => {
|
this._cursorBlinkStateManager = this.register(new CursorBlinkStateManager(() => {
|
||||||
this._requestRedrawCursor();
|
this._requestRedrawCursor();
|
||||||
}, this._coreBrowserService);
|
}, this._coreBrowserService));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this._cursorBlinkStateManager?.dispose();
|
this._cursorBlinkStateManager?.dispose();
|
||||||
|
|||||||
Reference in New Issue
Block a user