diff --git a/lib/rbitter/progress.rb b/lib/rbitter/progress.rb index 7cd372f..57c3eeb 100644 --- a/lib/rbitter/progress.rb +++ b/lib/rbitter/progress.rb @@ -10,7 +10,10 @@ def putback def draw sentence $> << sentence if sentence.length < @@last_draw - $> << " "*(@@last_draw - sentence.length) + clear_char_len = @@last_draw - sentence.length + clear_char_len.times { + $> << " " + } end @@last_draw = sentence.length putback diff --git a/lib/rbitter/version.rb b/lib/rbitter/version.rb index 8cf1ec8..f974f15 100644 --- a/lib/rbitter/version.rb +++ b/lib/rbitter/version.rb @@ -1,6 +1,6 @@ module Rbitter PRODUCT_NAME = "Rbitter" - VERSION = "0.2.2" + VERSION = "0.2.3" def major VERSION.match(/^([0-9]+)\./)[1]