From: wmorgan Date: Fri, 9 Nov 2007 19:18:49 +0000 (+0000) Subject: tiny bugfix for threadindexmode#contains_thread from eyal oren X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=e1e63d39b328761c1cb9b7e5d03ee93365cc45ea;p=sup tiny bugfix for threadindexmode#contains_thread from eyal oren git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@689 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index 06ab1e8..a79dc54 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -68,7 +68,7 @@ EOS def lines; @text.length; end def [] i; @text[i]; end #def contains_thread? t; !@lines[t].nil?; end - def contains_thread? t; @threads.contains?(t) end + def contains_thread? t; @threads.include?(t) end def reload drop_all_threads