diff --git a/lib/multi-bar.js b/lib/multi-bar.js index d40ccfc..99d2e8e 100644 --- a/lib/multi-bar.js +++ b/lib/multi-bar.js @@ -114,7 +114,7 @@ module.exports = class MultiBar extends _EventEmitter{ this.bars.splice(index, 1); // force update - this.update(); + this.update(true); // clear bottom this.terminal.newline(); @@ -124,7 +124,7 @@ module.exports = class MultiBar extends _EventEmitter{ } // internal update routine - update(){ + update(forceRendering=false){ // stop timer if (this.timer){ clearTimeout(this.timer); @@ -158,7 +158,7 @@ module.exports = class MultiBar extends _EventEmitter{ } // render - this.bars[i].render(); + this.bars[i].render(forceRendering); } // trigger event