sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit eb794236cdcb067ad7c3404168067adc4dc7c8da
parent 27218f16a550d6d5bcbbc5d2ff1dc62f09b34078
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Thu, 22 Mar 2007 18:37:19 +0000

fixed enter on empty index bug

git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@351 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M lib/sup/modes/thread-index-mode.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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