From 551edf64bcbbbc84af59b5ae44a0820314b72777 Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Sun, 8 Sep 2019 18:24:48 +0200 Subject: [PATCH] Reline: Fix wrong variable name This raised a NameError before. --- lib/reline.rb | 4 ++-- 1 file 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) {