From c82a955dfcbc7567c6b1109835096a1da26318fb Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Mon, 11 Sep 2017 11:20:30 +0200 Subject: [PATCH] Fix issue with cursor timer --- jssrc/term_screen.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jssrc/term_screen.js b/jssrc/term_screen.js index 8bae171..320c11d 100644 --- a/jssrc/term_screen.js +++ b/jssrc/term_screen.js @@ -725,7 +725,8 @@ window.TermScreen = class TermScreen { let y = Math.floor(cell / width) let isCursor = !this.cursor.hanging && this.cursor.x === x && - this.cursor.y === y + this.cursor.y === y && + this.cursor.blinkOn let wasCursor = x === this.drawnCursor[0] && y === this.drawnCursor[1] @@ -860,7 +861,7 @@ window.TermScreen = class TermScreen { } } - if (isCursor && this.cursor.blinkOn && !inSelection) { + if (isCursor && !inSelection) { ctx.save() ctx.beginPath() if (this.cursor.style === 'block') {