diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-06 01:03:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-06 01:03:36 +0000 |
commit | 09e36e478ff7c0f4ddedebe2ec8f3a7dbbec63bc (patch) | |
tree | 7a6ec4edead66e6ee873361d04a7165d26b3bd8b /lib | |
parent | d054cab6113b9df488e7c0bdace28545765270e1 (diff) | |
download | ruby-09e36e478ff7c0f4ddedebe2ec8f3a7dbbec63bc.tar.gz |
rdoc/stats/normal.rb: fix last_width
* lib/rdoc/stats/normal.rb (print_file): reset @last_width to the
last line size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rdoc/stats/normal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/stats/normal.rb b/lib/rdoc/stats/normal.rb index 64e20cc3c8..32de631e2e 100644 --- a/lib/rdoc/stats/normal.rb +++ b/lib/rdoc/stats/normal.rb @@ -36,7 +36,7 @@ class RDoc::Stats::Normal < RDoc::Stats::Quiet # Clean the line with whitespaces so that leftover output from the # previous line doesn't show up. $stdout.print("\r" << (" " * @last_width) << ("\b" * @last_width) << "\r") if @last_width && @last_width > 0 - @last_width = 0 + @last_width = line.size $stdout.print("#{line}\r") else $stdout.puts(line) |