Draw cursor at correct position when scrolling

Fixes #64
This commit is contained in:
Daniel Imms
2016-06-09 19:59:59 -07:00
parent cf9d2348a1
commit da9f86f1a7
+1 -2
View File
@@ -1102,9 +1102,8 @@
line = this.lines[row];
out = '';
if (y === this.y
if (this.y === y - (this.ybase - this.ydisp)
&& this.cursorState
&& (this.ydisp === this.ybase)
&& !this.cursorHidden) {
x = this.x;
} else {