From: William Morgan Date: Sun, 3 Feb 2008 04:01:57 +0000 (-0800) Subject: make dispatch-and-next still dispatch for the final thread in the list X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=e47f9dabca0349a1fff046232961b38d900d4445;p=sup make dispatch-and-next still dispatch for the final thread in the list --- 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