Merge pull request #1217 from Tyriar/1216_invalidate_cursor

Fix cursor lagging behind when blink is on
This commit is contained in:
Daniel Imms
2018-01-18 10:54:26 -08:00
committed by GitHub
+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);
}
}