]> git.notmuchmail.org Git - sup/commitdiff
fixed enter on empty index bug
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 22 Mar 2007 18:37:19 +0000 (18:37 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 22 Mar 2007 18:37:19 +0000 (18:37 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@351 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/thread-index-mode.rb

index 56e3d46e0555232d987adee4276b8bdd884afc21..68ee1ee6e4b37672bba38ff3393c85f4172043d2 100644 (file)
@@ -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