lib/sup/modes/thread_index_mode.rb in sup-0.21.0 vs lib/sup/modes/thread_index_mode.rb in sup-0.22.0
- old
+ new
@@ -1024,10 +1024,14 @@
def default_date_widget_for t
t.date.getlocal.to_nice_s
end
def from_width
- [(buffer.content_width.to_f * 0.2).to_i, MIN_FROM_WIDTH].max if buffer else MIN_FROM_WIDTH # not sure why the buffer is gone
+ if buffer
+ [(buffer.content_width.to_f * 0.2).to_i, MIN_FROM_WIDTH].max
+ else
+ MIN_FROM_WIDTH # not sure why the buffer is gone
+ end
end
def initialize_threads
@ts = ThreadSet.new Index.instance, $config[:thread_by_subject]
@ts_mutex = Mutex.new