# File lib/luck/label.rb, line 26 def redraw if text.empty? @display.place y1, x1, ' ' * width return end row = y1 text.each_line do |line| line.chomp! length = line.size offset = 0 while offset < width || offset == 0 @display.place row, x1, align_text(line[offset, width]) row += 1 offset += width return if row >= y2 end end end