Fix cursor lagging behind when blink is on

Fixes #1216
This commit is contained in:
Daniel Imms
2018-01-18 07:54:45 -08:00
parent 5888cd7938
commit b1beee3595
+2 -1
View File
@@ -108,9 +108,10 @@ export class CursorRenderLayer extends BaseRenderLayer {
}
public onGridChanged(terminal: ITerminal, startRow: number, endRow: number): void {
// Only render if the animation frame is not active
if (!this._cursorBlinkStateManager || this._cursorBlinkStateManager.isPaused) {
this._render(terminal, false);
} else {
this._cursorBlinkStateManager.restartBlinkAnimation(terminal);
}
}