Some fix
This commit is contained in:
parent
0a81033cae
commit
20f663f280
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ module Widgets
|
|||
offset = 0
|
||||
|
||||
messages.each do |msg|
|
||||
offset = draw_message offset, msg[:out], msg[:time].strftime('%H:%M:%S'), msg[:name], msg[:text]
|
||||
offset += draw_message offset, msg[:out], msg[:time].strftime('%H:%M:%S'), msg[:name], msg[:text]
|
||||
|
||||
break if offset >= height
|
||||
end
|
||||
|
@ -48,7 +48,7 @@ module Widgets
|
|||
addstr text[(width * (line - 1))...(width * line)]
|
||||
end
|
||||
|
||||
offset + 1 + lines
|
||||
1 + lines
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Reference in a new issue