Fix cursor blinking when enabled

Fixes #119
This commit is contained in:
Daniel Imms
2016-06-10 18:05:13 -07:00
parent 7c1559b8ad
commit 4a71a41380
+2 -3
View File
@@ -1283,7 +1283,7 @@
};
Terminal.prototype._cursorBlink = function() {
if (Terminal.focus !== this) return;
if (document.activeElement !== this.element) return;
this.cursorState ^= 1;
this.refresh(this.y, this.y);
};
@@ -1293,8 +1293,7 @@
this.cursorState = 1;
this.refresh(this.y, this.y);
} else {
// Temporarily disabled:
// this.refreshBlink();
this.refreshBlink();
}
};