Pause cursor render layer before resuming

Fixes #2764
This commit is contained in:
Daniel Imms
2020-04-06 05:32:11 -07:00
parent 86a41dd6dd
commit 8b5a133106
2 changed files with 6 additions and 0 deletions
@@ -360,6 +360,9 @@ class CursorBlinkStateManager {
}
public resume(terminal: Terminal): void {
// Clear out any existing timers just in case
this.pause();
this._animationTimeRestarted = undefined;
this._restartInterval();
this.restartBlinkAnimation(terminal);
@@ -364,6 +364,9 @@ class CursorBlinkStateManager {
}
public resume(): void {
// Clear out any existing timers just in case
this.pause();
this._animationTimeRestarted = undefined;
this._restartInterval();
this.restartBlinkAnimation();