lib/formatador/progressbar.rb in formatador-0.2.1 vs lib/formatador/progressbar.rb in formatador-0.2.2

- old
+ new

@@ -2,12 +2,12 @@ def redisplay_progressbar(current, total, options = {}) options = { :color => 'white', :width => 50, :new_line => true }.merge!(options) data = progressbar(current, total, options) if current < total - redisplay(data) + redisplay(data, options[:width]) else - redisplay("#{data}") + redisplay("#{data}", options[:width]) if options[:new_line] new_line end @progressbar_started_at = nil end