]> git.cworth.org Git - sup/commitdiff
minor comment cleanup
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 20 Dec 2006 19:47:12 +0000 (19:47 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 20 Dec 2006 19:47:12 +0000 (19:47 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@91 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/scroll-mode.rb

index ed8c7e7801bb7bc252f92ec5928e0eec131fc921..3477575998413249ff94c007fd18dbebc1c123f1 100644 (file)
@@ -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],