]> git.cworth.org Git - sup/commitdiff
tiny bugfix for threadindexmode#contains_thread from eyal oren
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 9 Nov 2007 19:18:49 +0000 (19:18 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 9 Nov 2007 19:18:49 +0000 (19:18 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@689 5c8cc53c-5e98-4d25-b20a-d8db53a31250

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

index 06ab1e86846ad14fe7af80bb072e4e9d737e2977..a79dc54d31f3256a1b6f1a3333a2207a5b4faa57 100644 (file)
@@ -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