From 72063329fe19402e41e0b1ef33db6e7f4c28fc9f Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Fri, 20 Jan 2017 21:49:39 -0800 Subject: [PATCH] Fix index behavior Don't wrap cursor to column 0 after an index, fixes 2 tests --- src/xterm.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xterm.js b/src/xterm.js index 7ab69b8d..ca5b642e 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -2303,6 +2303,9 @@ Terminal.prototype.index = function() { this.y--; this.scroll(); } + if (this.x >= this.cols) { + this.x--; + } };