Fix issue with cursor timer

cpsdqs/unified-input
cpsdqs 7 years ago
parent 0c23da7bf8
commit c82a955dfc
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. 5
      jssrc/term_screen.js

@ -725,7 +725,8 @@ window.TermScreen = class TermScreen {
let y = Math.floor(cell / width) let y = Math.floor(cell / width)
let isCursor = !this.cursor.hanging && let isCursor = !this.cursor.hanging &&
this.cursor.x === x && 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] 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.save()
ctx.beginPath() ctx.beginPath()
if (this.cursor.style === 'block') { if (this.cursor.style === 'block') {

Loading…
Cancel
Save