From f28defc75f7ae2332c7355171713a5195b8170d8 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Thu, 11 Jan 2007 19:09:11 +0000 Subject: [PATCH] removing some warnings git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@242 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/buffer.rb | 2 +- lib/sup/modes/scroll-mode.rb | 2 +- lib/sup/thread.rb | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb index 2b94d79..b2f2e4f 100644 --- a/lib/sup/buffer.rb +++ b/lib/sup/buffer.rb @@ -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 diff --git a/lib/sup/modes/scroll-mode.rb b/lib/sup/modes/scroll-mode.rb index 34b745a..459c780 100644 --- a/lib/sup/modes/scroll-mode.rb +++ b/lib/sup/modes/scroll-mode.rb @@ -80,7 +80,7 @@ class ScrollMode < Mode end def resize *a - super *a + super(*a) ensure_mode_validity end diff --git a/lib/sup/thread.rb b/lib/sup/thread.rb index 0199e4d..439d794 100644 --- a/lib/sup/thread.rb +++ b/lib/sup/thread.rb @@ -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 -- 2.45.2