From: wmorgan Date: Thu, 22 Mar 2007 18:37:19 +0000 (+0000) Subject: fixed enter on empty index bug X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=eb794236cdcb067ad7c3404168067adc4dc7c8da;p=sup fixed enter on empty index bug git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@351 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index 56e3d46..68ee1ee 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -56,7 +56,7 @@ class ThreadIndexMode < LineCursorMode ## open up a thread view window def select t=nil - t ||= @threads[curpos] + t ||= @threads[curpos] or return ## TODO: don't regen text completely Redwood::reporting_thread do