[前][次][番号順一覧][スレッド一覧]

ruby-changes:57678

From: Lars <ko1@a...>
Date: Mon, 9 Sep 2019 19:16:24 +0900 (JST)
Subject: [ruby-changes:57678] 551edf64bc (master): Reline: Fix wrong variable name

https://git.ruby-lang.org/ruby.git/commit/?id=551edf64bc

From 551edf64bcbbbc84af59b5ae44a0820314b72777 Mon Sep 17 00:00:00 2001
From: Lars Kanis <lars@g...>
Date: Sun, 8 Sep 2019 18:24:48 +0200
Subject: Reline: Fix wrong variable name

This raised a NameError before.

diff --git a/lib/reline.rb b/lib/reline.rb
index ef9c776..f8ffd5a 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -287,7 +287,7 @@ module Reline https://github.com/ruby/ruby/blob/trunk/lib/reline.rb#L287
           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 https://github.com/ruby/ruby/blob/trunk/lib/reline.rb#L296
       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) {
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]