]> git.cworth.org Git - sup/commitdiff
don't jump to the next open message when expanding
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Fri, 5 Jun 2009 14:34:31 +0000 (10:34 -0400)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Fri, 5 Jun 2009 14:34:31 +0000 (10:34 -0400)
When pressing enter to expand an entire message, don't jump to the next
open message. Only jump when you've collapsed the message.

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

index 1d047086b05fefcd21fe72164929b680b9bd8b67..487c05b8a3b43e749a934ca72fa171943447ac2e 100644 (file)
@@ -261,7 +261,7 @@ EOS
     end
     if chunk.is_a?(Message)
       jump_to_message chunk
-      jump_to_next_open
+      jump_to_next_open if layout.state == :closed
     end
   end