commit 20185b4db2899d7ec71eb85e15f4b051f30b65af
parent eab3b63f9e555d0f322d9ab459a679bb9db7aea4
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Wed, 3 Jan 2007 16:15:52 +0000
added multi_select
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@156 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
@@ -42,9 +42,8 @@ class ThreadIndexMode < LineCursorMode
def [] i; @text[i]; end
## open up a thread view window
- def select
- this_curpos = curpos
- t = @threads[this_curpos]
+ def select t=nil
+ t ||= @threads[curpos]
## TODO: don't regen text completely
Redwood::reporting_thread do
@@ -53,6 +52,10 @@ class ThreadIndexMode < LineCursorMode
BufferManager.draw_screen
end
end
+
+ def multi_select threads
+ threads.each { |t| select t }
+ end
def handle_starred_update m
return unless(t = @ts.thread_for m)