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

ruby-changes:67619

From: aycabta <ko1@a...>
Date: Mon, 6 Sep 2021 05:23:48 +0900 (JST)
Subject: [ruby-changes:67619] 7de2c9a966 (master): [ruby/reline] Use combined_key if it exists when comparing Reline::Key and Integer

https://git.ruby-lang.org/ruby.git/commit/?id=7de2c9a966

From 7de2c9a9662c26c955d6afa1bce0fc4e07dd5ff7 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Mon, 6 Sep 2021 04:02:31 +0900
Subject: [ruby/reline] Use combined_key if it exists when comparing
 Reline::Key and Integer

https://github.com/ruby/reline/commit/8fca5f6f9c
---
 lib/reline.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/reline.rb b/lib/reline.rb
index 33aa6cd..82337c1 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -25,7 +25,7 @@ module Reline https://github.com/ruby/ruby/blob/trunk/lib/reline.rb#L25
       elsif key.is_a?(Integer) or key.is_a?(Symbol)
         if not combined_char.nil? and combined_char == key
           true
-        elsif not char.nil? and char == key
+        elsif combined_char.nil? and not char.nil? and char == key
           true
         else
           false
-- 
cgit v1.1


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

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