Archived
1
0
Fork 0

Strip history message lines

This commit is contained in:
Braiden Vasco 2017-07-26 15:30:19 +00:00
parent 2b48467806
commit b3d653c982

View file

@ -26,7 +26,7 @@ module Widgets
lines = (text.length / width.to_f).ceil lines = (text.length / width.to_f).ceil
1.upto lines do |line| 1.upto lines do |line|
s = text[(width * (line - 1))...(width * line)] s = text[(width * (line - 1))...(width * line)].strip
if out && s.length != width if out && s.length != width
setpos left + width - s.length, props[:height] - offset - lines + line - 1 setpos left + width - s.length, props[:height] - offset - lines + line - 1