commit 6fdafbe03c6cdc15f8f4cd1f70b2003f846f5df4
parent fe21c1c907c414f76d44893b97bf146e34f41842
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date: Sat, 7 Oct 2006 22:34:23 -0700
[project @ 1cedb8e4a5ac9477403988ede282524defc8356a]
fix multiple args to Client#untag!
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/wm.rb b/wm.rb
@@ -265,14 +265,16 @@ module Wmii
# Adds the given tags to this client.
def tag! *aTags
with_tags do
- push(*aTags)
+ push(*aTags.flatten.map {|t| t.to_s})
end
end
# Removes the given tags from this client.
def untag! *aTags
with_tags do
- delete(*aTags)
+ aTags.flatten.each do |tag|
+ delete tag.to_s
+ end
end
end