From: wmorgan Date: Wed, 20 Dec 2006 19:47:12 +0000 (+0000) Subject: minor comment cleanup X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=fb056c26e34e7f5a75947b4fefe0b514a0696170;p=sup minor comment cleanup git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@91 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/modes/scroll-mode.rb b/lib/sup/modes/scroll-mode.rb index ed8c7e7..3477575 100644 --- a/lib/sup/modes/scroll-mode.rb +++ b/lib/sup/modes/scroll-mode.rb @@ -87,12 +87,11 @@ protected when Array xpos = 0 s.each do |color, text| - raise "nil text for color '#{color}'" if text.nil? + raise "nil text for color '#{color}'" if text.nil? # good for debugging if xpos + text.length < @leftcol buffer.write ln - @topline, 0, "", :color => color, :highlight => opts[:highlight] xpos += text.length - ## nothing elsif xpos < @leftcol ## partial buffer.write ln - @topline, 0, text[(@leftcol - xpos) .. -1],