summaryrefslogtreecommitdiff
path: root/lib/reline/key_stroke.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/reline/key_stroke.rb')
-rw-r--r--lib/reline/key_stroke.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/reline/key_stroke.rb b/lib/reline/key_stroke.rb
index c3cee3d241..4999225c9b 100644
--- a/lib/reline/key_stroke.rb
+++ b/lib/reline/key_stroke.rb
@@ -56,8 +56,8 @@ class Reline::KeyStroke
if func.is_a?(Array)
# Perform simple macro expansion for single byte key bindings.
# Multibyte key bindings and recursive macro expansion are not supported yet.
- marco = func.pack('c*').force_encoding(@encoding)
- keys = marco.chars.map do |c|
+ macro = func.pack('c*').force_encoding(@encoding)
+ keys = macro.chars.map do |c|
f = key_mapping.get(c.bytes)
Reline::Key.new(c, f.is_a?(Symbol) ? f : :ed_insert, false)
end