Fix index behavior

Don't wrap cursor to column 0 after an index, fixes 2 tests
This commit is contained in:
Daniel Imms
2017-01-20 21:49:39 -08:00
parent adaf604ce0
commit 72063329fe
+3
View File
@@ -2303,6 +2303,9 @@ Terminal.prototype.index = function() {
this.y--;
this.scroll();
}
if (this.x >= this.cols) {
this.x--;
}
};