mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Add missing webgl cursor blink disposal
Same disposal code as the non-webgl cursor blink layer
This commit is contained in:
@@ -54,6 +54,14 @@ export class CursorRenderLayer extends BaseRenderLayer {
|
||||
this.onOptionsChanged(terminal);
|
||||
}
|
||||
|
||||
public override dispose(): void {
|
||||
if (this._cursorBlinkStateManager) {
|
||||
this._cursorBlinkStateManager.dispose();
|
||||
this._cursorBlinkStateManager = undefined;
|
||||
}
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
public resize(terminal: Terminal, dim: IRenderDimensions): void {
|
||||
super.resize(terminal, dim);
|
||||
// Resizing the canvas discards the contents of the canvas so clear state
|
||||
|
||||
Reference in New Issue
Block a user