]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Draw cursor at correct position when scrolling
authorDaniel Imms <daimms@microsoft.com>
Fri, 10 Jun 2016 02:59:59 +0000 (19:59 -0700)
committerDaniel Imms <daimms@microsoft.com>
Fri, 10 Jun 2016 02:59:59 +0000 (19:59 -0700)
Fixes #64

src/xterm.js

index b17437cce963a164040f354d89db3fb96a0e11e1..f75989ee40071332230f0fb24e6e5738557c42ec 100644 (file)
         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 {