8000 Fix typo: marco -> macro (#806) · ruby/reline@2111172 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 2111172

Browse files
authored
Fix typo: marco -> macro (#806)
1 parent 24e6128 commit 2111172

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/reline/key_stroke.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def expand(input)
5656
if func.is_a?(Array)
5757
# Perform simple macro expansion for single byte key bindings.
5858
# 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|
59+
macro = func.pack('c*').force_encoding(@encoding)
60+
keys = macro.chars.map do |c|
6161
f = key_mapping.get(c.bytes)
6262
Reline::Key.new(c, f.is_a?(Symbol) ? f : :ed_insert, false)
6363
end

0 commit comments

Comments
 (0)
0