diff options
author | Lars Kanis <[email protected]> | 2019-09-08 18:24:48 +0200 |
---|---|---|
committer | aycabta <[email protected]> | 2019-09-09 19:16:01 +0900 |
commit | 551edf64bcbbbc84af59b5ae44a0820314b72777 (patch) | |
tree | d5465b0bd06d560f4e9e1cb5f8acd56a72c207a2 | |
parent | 8c09de38c5f2dab324bcb30ab4a8db9bd55357b2 (diff) |
Reline: Fix wrong variable name
This raised a NameError before.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2438
-rw-r--r-- | lib/reline.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/reline.rb b/lib/reline.rb index ef9c776f52..f8ffd5a707 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -287,7 +287,7 @@ module Reline end when :unmatched if buffer.size == 1 and c == "\e".ord - read_escaped_key(keyseq_timeout, buffer, block) + read_escaped_key(keyseq_timeout, c, block) else block.(buffer.map{ |c| Reline::Key.new(c, c, false) }) end @@ -296,7 +296,7 @@ module Reline end end - private def read_escaped_key(keyseq_timeout, buffer, block) + private def read_escaped_key(keyseq_timeout, c, block) begin escaped_c = nil Timeout.timeout(keyseq_timeout / 1000.0) { |