]> git.cworth.org Git - sup/commitdiff
always use detailed headers for threads of size 1
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 5 Jan 2007 16:54:19 +0000 (16:54 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 5 Jan 2007 16:54:19 +0000 (16:54 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@188 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/thread-view-mode.rb

index 37bef9f921b36531364b3e207c4ced24b345da7c..5fc3a305a4aaf60d970f1da99756d7d7b4ac8b31 100644 (file)
@@ -38,7 +38,7 @@ class ThreadViewMode < LineCursorMode
     end
 
     @state[latest] = :open if @state[latest] == :closed
-    @state[earliest] = :detailed if earliest.has_label?(:unread)
+    @state[earliest] = :detailed if earliest.has_label?(:unread) || @thread.size == 1
 
     BufferManager.say "Loading message bodies..." do
       regen_chunks