commit 960242ad7c50d932ccc4ba60d12690b2b637f11c
parent cd4a6211a0a969e7327568016073128be15c0bf6
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date: Thu, 14 Sep 2006 06:41:06 -0700
[project @ b9d8bd09cf706040b1875236bbffc31e3cc5cff4]
[project @ 93]
better impl
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/wmiirc-config.rb b/wmiirc-config.rb
@@ -280,7 +280,9 @@ SHORTCUTS = {
# you delete the first client (index 1).
# now, wmii reorders the client indices: [1, 2]
# that is why we must go in reverse!
- Wmii.selected_clients.sort {|a, b| a.index.to_i <=> b.index.to_i}.reverse.each do |c|
+ Wmii.selected_clients.sort_by do |c|
+ c.index.to_i
+ end.reverse.each do |c|
c.ctl = 'kill'
end
end,