We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24e6128 commit 2111172Copy full SHA for 2111172
lib/reline/key_stroke.rb
@@ -56,8 +56,8 @@ def expand(input)
56
if func.is_a?(Array)
57
# Perform simple macro expansion for single byte key bindings.
58
# Multibyte key bindings and recursive macro expansion are not supported yet.
59
- marco = func.pack('c*').force_encoding(@encoding)
60
- keys = marco.chars.map do |c|
+ macro = func.pack('c*').force_encoding(@encoding)
+ keys = macro.chars.map do |c|
61
f = key_mapping.get(c.bytes)
62
Reline::Key.new(c, f.is_a?(Symbol) ? f : :ed_insert, false)
63
end
0 commit comments