summaryrefslogtreecommitdiff
path: root/lib/rdoc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-06 01:03:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-06 01:03:36 +0000
commit09e36e478ff7c0f4ddedebe2ec8f3a7dbbec63bc (patch)
tree7a6ec4edead66e6ee873361d04a7165d26b3bd8b /lib/rdoc
parentd054cab6113b9df488e7c0bdace28545765270e1 (diff)
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/rdoc')
-rw-r--r--lib/rdoc/stats/normal.rb2
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)