From: wmorgan Date: Thu, 18 Jan 2007 01:45:37 +0000 (+0000) Subject: automatically jump cursor to first open message in thread-view-mode X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=c72b14b817e16ad7780ed3c16d0b6b210878aa1c;p=sup automatically jump cursor to first open message in thread-view-mode (kinda lame) git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@262 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index 7b54994..cbfd413 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -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