]> git.notmuchmail.org Git - sup/commitdiff
removing some warnings
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 11 Jan 2007 19:09:11 +0000 (19:09 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 11 Jan 2007 19:09:11 +0000 (19:09 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@242 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/buffer.rb
lib/sup/modes/scroll-mode.rb
lib/sup/thread.rb

index 2b94d79813b299f02eb0cdbcb7621ceff2d246ba..b2f2e4fcdac9563bdd6842e19839d8478b37f33a 100644 (file)
@@ -14,7 +14,7 @@ module Ncurses
   end
 
   def mutex; @mutex ||= Mutex.new; end
-  def sync &b; mutex.synchronize &b; end
+  def sync &b; mutex.synchronize(&b); end
 
   ## aaahhh, user input. who would have though that such a simple
   ## idea would be SO FUCKING COMPLICATED?! because apparently
index 34b745a72ec6001423518c876fda0fa0778713c6..459c780bca87855b3c218a98dc7ab181ac89daa3 100644 (file)
@@ -80,7 +80,7 @@ class ScrollMode < Mode
   end
 
   def resize *a
-    super *a
+    super(*a)
     ensure_mode_validity
   end
 
index 0199e4d7f1a421184954fad57575d4f77dcaba07..439d7941175f35e6a7d43d715b50978f6c23eba4 100644 (file)
@@ -102,7 +102,6 @@ class Thread
   def set_labels l; each { |m, *o| m && m.labels = l }; end
   
   def has_label? t; any? { |m, *o| m && m.has_label?(t) }; end
-  def dirty?; any? { |m, *o| m && m.dirty? }; end
   def save index; each { |m, *o| m && m.save(index) }; end
 
   def direct_participants