Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed bug in KEYPRESS_MAPPINGS loop.

  • Loading branch information...
commit e1ba3dd01c18699466e6798d103138dc053482cd 1 parent c36863f
@guyhf guyhf authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 plugin/lusty-juggler.vim
  2. +2 −2 src/lusty/juggler.rb
View
4 plugin/lusty-juggler.vim
@@ -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
4 src/lusty/juggler.rb
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.