lib/progress/class_methods.rb in progress-3.5.0 vs lib/progress/class_methods.rb in progress-3.5.1

- old
+ new

@@ -1,6 +1,7 @@ # encoding: UTF-8 +# frozen_string_literal: true class Progress # Class methods of Progress module ClassMethods def self.extended(klass) @@ -179,10 +180,10 @@ end def message_for_output(options) message = build_message(options) - out = '' + out = ''.dup out << "\r" if stay_on_line? out << message out << "\e[K" if stay_on_line? out << "\n" if !stay_on_line? || options[:finish]