commit ff37d368880238cf4321fbbf00f92296f804c6be
parent ab66ec692768cf61d09a7048213ffd0cdce31a41
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date: Tue, 27 Feb 2007 12:51:05 -0800
fix alphabet key handling
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/wmiirc-config.rb b/wmiirc-config.rb
@@ -609,7 +609,9 @@ end
# jump to view whose name begins with the pressed key.
('a'..'z').each do |key|
SHORTCUTS["#{MOD_MENU}v,#{key}"] = lambda do
- focus_view_matching(/^#{key}/i)
+ if t = tags.grep(/^#{key}/i).first
+ focus_view t
+ end
end
end