update files

This commit is contained in:
nuintun 2015-11-25 15:45:31 +08:00
parent b5342aad38
commit 99098e549e

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 !== null) {
if (i !== undefined) {
if (!this.tabs[i]) {
i = this.prevStop(i);
}
@ -22,7 +22,7 @@ module.exports = function (Terminal){
};
Terminal.prototype.prevStop = function (x){
if (x === null) x = this.x;
if (x === undefined) x = this.x;
while (!this.tabs[--x] && x > 0) {}
@ -30,7 +30,7 @@ module.exports = function (Terminal){
};
Terminal.prototype.nextStop = function (x){
if (x === null) x = this.x;
if (x === undefined) x = this.x;
while (!this.tabs[++x] && x < this.cols) {}