sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit c72b14b817e16ad7780ed3c16d0b6b210878aa1c
parent 85a67dbc097c0c09025b5e220acf55f6cede5d7c
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Thu, 18 Jan 2007 01:45:37 +0000

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

Diffstat:
M lib/sup/modes/thread-index-mode.rb | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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