update files

This commit is contained in:
nuintun
2015-11-25 17:28:12 +08:00
parent d871c2b302
commit 092961802c
5 changed files with 21 additions and 11 deletions

View File

@@ -7,7 +7,7 @@
// ignore warnings regarging == and != (coersion makes things work here appearently)
module.exports = function (Terminal){
Terminal.prototype.setupStops = function (i){
if (i !== undefined) {
if (arguments.length) {
if (!this.tabs[i]) {
i = this.prevStop(i);
}
@@ -22,7 +22,7 @@ module.exports = function (Terminal){
};
Terminal.prototype.prevStop = function (x){
if (x === undefined) x = this.x;
if (!arguments.length) x = this.x;
while (!this.tabs[--x] && x > 0) {}
@@ -30,7 +30,7 @@ module.exports = function (Terminal){
};
Terminal.prototype.nextStop = function (x){
if (x === undefined) x = this.x;
if (!arguments.length) x = this.x;
while (!this.tabs[++x] && x < this.cols) {}