mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-28 18:32:43 +08:00
update files
This commit is contained in:
parent
b5342aad38
commit
99098e549e
@ -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) {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user