update files

This commit is contained in:
nuintun
2015-11-24 22:00:46 +08:00
parent 085a5cf350
commit 32ae3adceb
24 changed files with 149 additions and 142 deletions

View File

@@ -6,7 +6,6 @@
// ignore warnings regarging == and != (coersion makes things work here appearently)
module.exports = function (Terminal){
Terminal.prototype.setupStops = function (i){
if (i != null) {
if (!this.tabs[i]) {
@@ -24,13 +23,17 @@ module.exports = function (Terminal){
Terminal.prototype.prevStop = function (x){
if (x == null) x = this.x;
while (!this.tabs[--x] && x > 0);
while (!this.tabs[--x] && x > 0) {}
return x >= this.cols ? this.cols - 1 : x < 0 ? 0 : x;
};
Terminal.prototype.nextStop = function (x){
if (x == null) x = this.x;
while (!this.tabs[++x] && x < this.cols);
while (!this.tabs[++x] && x < this.cols) {}
return x >= this.cols ? this.cols - 1 : x < 0 ? 0 : x;
};
};