From e47f9dabca0349a1fff046232961b38d900d4445 Mon Sep 17 00:00:00 2001 From: William Morgan Date: Sat, 2 Feb 2008 20:01:57 -0800 Subject: [PATCH] make dispatch-and-next still dispatch for the final thread in the list --- lib/sup/modes/thread-index-mode.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index 0809d54..cdc0b73 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -117,9 +117,13 @@ EOS set_cursor_pos l + 1 # move out of mutex? @threads[l + 1] end - end or return + end - select t, b + if t # there's a next thread + select t, b + elsif b # no next thread. call the block anyways + b.call + end end def handle_single_message_labeled_update sender, m -- 2.45.2