]> git.cworth.org Git - sup/commitdiff
automatically jump cursor to first open message in thread-view-mode
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 18 Jan 2007 01:45:37 +0000 (01:45 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 18 Jan 2007 01:45:37 +0000 (01:45 +0000)
(kinda lame)

git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@262 5c8cc53c-5e98-4d25-b20a-d8db53a31250

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

index 7b549949dc652166ef8229658c197b5bf8bffdfb..cbfd413fa358e17eeec7dfa3b3d58b1cf09825f0 100644 (file)
@@ -61,6 +61,10 @@ class ThreadIndexMode < LineCursorMode
       mode = ThreadViewMode.new t, @hidden_labels
       BufferManager.spawn t.subj, mode
       BufferManager.draw_screen
+      mode.jump_to_next_open
+      BufferManager.draw_screen # lame TODO: make this unnecessary
+      ## the first draw_screen is needed before topline and botline
+      ## are set, and the second to show the cursor having moved
     end
   end