commit e47f9dabca0349a1fff046232961b38d900d4445
parent 5977aecf6bf51a1f7a2bb59d01742dd4ced979ce
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Sat, 2 Feb 2008 20:01:57 -0800
make dispatch-and-next still dispatch for the final thread in the list
Diffstat:
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
@@ -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