commit e5dad9254dec2cbc49b099396a1b00d35d861d20
parent f8d24a35c2680d6cadbf569f45b5f331fad76740
Author: Gaute Hope <eg@gaute.vetsj.com>
Date: Mon, 12 Aug 2013 18:11:29 +0200
Merge #122
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/sup/modes/thread_view_mode.rb b/lib/sup/modes/thread_view_mode.rb
@@ -846,6 +846,10 @@ private
else
width = buffer.content_width
end
+ # lines can apparently be both String and Array, convert to Array for map.
+ if lines.kind_of? String
+ lines = lines.lines.to_a
+ end
lines = lines.map { |l| l.chomp.wrap width if l }.flatten
end
return lines