]> git.cworth.org Git - sup/commitdiff
fix my breaking of marcus's patch, thanks to marcus
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 7 Nov 2007 17:35:26 +0000 (17:35 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 7 Nov 2007 17:35:26 +0000 (17:35 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@674 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/inbox-mode.rb

index 66b7379860ebc875f14a2a461a662074dbaf5c57..719565bce1ef1be42b795b768d86b86f3f209ec3 100644 (file)
@@ -15,7 +15,7 @@ class InboxMode < ThreadIndexMode
   end
 
   def is_relevant? m
-    m.has_label? :inbox && ([:spam, :deleted, :killed] & m.labels).length == 0
+    m.has_label?(:inbox) && ([:spam, :deleted, :killed] & m.labels).empty?
   end
 
   ## label-list-mode wants to be able to raise us if the user selects