File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
addons/xterm-addon-webgl/src Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,6 @@ export class WebglRenderer extends Disposable implements IRenderer {
136
136
for ( const l of this . _renderLayers ) {
137
137
l . dispose ( ) ;
138
138
}
139
- this . _cursorBlinkStateManager ?. dispose ( ) ;
140
139
this . _canvas . parentElement ?. removeChild ( this . _canvas ) ;
141
140
removeTerminalFromCache ( this . _terminal ) ;
142
141
} ) ) ;
@@ -366,9 +365,9 @@ export class WebglRenderer extends Disposable implements IRenderer {
366
365
private _updateCursorBlink ( ) : void {
367
366
if ( this . _terminal . options . cursorBlink ) {
368
367
if ( ! this . _cursorBlinkStateManager ) {
369
- this . _cursorBlinkStateManager = new CursorBlinkStateManager ( ( ) => {
368
+ this . _cursorBlinkStateManager = this . register ( new CursorBlinkStateManager ( ( ) => {
370
369
this . _requestRedrawCursor ( ) ;
371
- } , this . _coreBrowserService ) ;
370
+ } , this . _coreBrowserService ) ) ;
372
371
}
373
372
} else {
374
373
this . _cursorBlinkStateManager ?. dispose ( ) ;
You can’t perform that action at this time.
0 commit comments