diff --git a/static/js/terminal/lib/stops.js b/static/js/terminal/lib/stops.js index d01288e..53670aa 100644 --- a/static/js/terminal/lib/stops.js +++ b/static/js/terminal/lib/stops.js @@ -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) {}