mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-29 03:23:09 +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)
|
// ignore warnings regarging == and != (coersion makes things work here appearently)
|
||||||
module.exports = function (Terminal){
|
module.exports = function (Terminal){
|
||||||
Terminal.prototype.setupStops = function (i){
|
Terminal.prototype.setupStops = function (i){
|
||||||
if (i !== null) {
|
if (i !== undefined) {
|
||||||
if (!this.tabs[i]) {
|
if (!this.tabs[i]) {
|
||||||
i = this.prevStop(i);
|
i = this.prevStop(i);
|
||||||
}
|
}
|
||||||
@ -22,7 +22,7 @@ module.exports = function (Terminal){
|
|||||||
};
|
};
|
||||||
|
|
||||||
Terminal.prototype.prevStop = function (x){
|
Terminal.prototype.prevStop = function (x){
|
||||||
if (x === null) x = this.x;
|
if (x === undefined) x = this.x;
|
||||||
|
|
||||||
while (!this.tabs[--x] && x > 0) {}
|
while (!this.tabs[--x] && x > 0) {}
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ module.exports = function (Terminal){
|
|||||||
};
|
};
|
||||||
|
|
||||||
Terminal.prototype.nextStop = function (x){
|
Terminal.prototype.nextStop = function (x){
|
||||||
if (x === null) x = this.x;
|
if (x === undefined) x = this.x;
|
||||||
|
|
||||||
while (!this.tabs[++x] && x < this.cols) {}
|
while (!this.tabs[++x] && x < this.cols) {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user