progress
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -125,4 +125,4 @@ /*! | ||
/* compute the available space for the bar */ | ||
var availableSpace = this.stream.columns - str.replace(':bar', '').length; | ||
/* compute the available space (non-zero) for the bar */ | ||
var availableSpace = Math.max(0, this.stream.columns - str.replace(':bar', '').length); | ||
var width = Math.min(this.width, availableSpace); | ||
@@ -129,0 +129,0 @@ |
{ | ||
"name": "progress" | ||
, "version": "1.1.6" | ||
, "version": "1.1.7" | ||
, "description": "Flexible ascii progress bar" | ||
@@ -5,0 +5,0 @@ , "keywords": ["cli", "progress"] |
10768