Permalink
Browse files

Fixed bug in KEYPRESS_MAPPINGS loop.

  • Loading branch information...
guyhf committed Feb 29, 2012
1 parent c36863f commit e1ba3dd01c18699466e6798d103138dc053482cd
Showing with 4 additions and 4 deletions.
  1. +2 −2 plugin/lusty-juggler.vim
  2. +2 −2 src/lusty/juggler.rb
View
@@ -628,8 +628,8 @@ class LustyJuggler
@key_mappings_map = Hash.new { |hash, k| hash[k] = [] }
# Selection keys.
- @KEYPRESS_MAPPINGS.keys.each do |c|
- map_key(c, ":call <SID>LustyJugglerKeyPressed('#{c}')<CR>")
+ @KEYPRESS_MAPPINGS.each_pair do |c, v|
+ map_key(c, ":call <SID>LustyJugglerKeyPressed('#{v}')<CR>")
end
# Cancel keys.
View
@@ -97,8 +97,8 @@ def run
@key_mappings_map = Hash.new { |hash, k| hash[k] = [] }
# Selection keys.
- @KEYPRESS_MAPPINGS.keys.each do |c|
- map_key(c, ":call <SID>LustyJugglerKeyPressed('#{c}')<CR>")
+ @KEYPRESS_MAPPINGS.each_pair do |c, v|
+ map_key(c, ":call <SID>LustyJugglerKeyPressed('#{v}')<CR>")
end
# Cancel keys.

0 comments on commit e1ba3dd

Please sign in to comment.