wmiirc-rumai

git clone git://oldgit.suckless.org/wmiirc-rumai/
Log | Files | Refs | README | LICENSE

commit 34b9b2288da2089bbe1feecd494db41e0ea54b28
parent 1dcd6d7ddda9f796d65954aadb1c30675134140b
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Sat,  3 Mar 2007 19:44:29 -0800

fix error when focusing {i}'th view when i > number of views

Diffstat:
wmiirc-config.rb | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wmiirc-config.rb b/wmiirc-config.rb @@ -546,13 +546,13 @@ SHORTCUTS = { 10.times do |i| # focus {i}'th view SHORTCUTS[MOD_FOCUS + i.to_s] = lambda do - focus_view tags[i - 1] + focus_view tags[i - 1] || i end # send current grouping to {i}'th view SHORTCUTS[MOD_SEND + i.to_s] = lambda do grouped_clients.each do |c| - c.tags = tags[i - 1] + c.tags = tags[i - 1] || i end end