aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reline.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-09-06 04:02:31 +0900
committergit <svn-admin@ruby-lang.org>2021-09-06 05:23:36 +0900
commit7de2c9a9662c26c955d6afa1bce0fc4e07dd5ff7 (patch)
treedfb35f70fc12d40e24f724cc511fcf0ad075b97c /lib/reline.rb
parent3773296bfc45a60baf9e5cc025bfed2d6b493eaa (diff)
downloadruby-7de2c9a9662c26c955d6afa1bce0fc4e07dd5ff7.tar.gz
[ruby/reline] Use combined_key if it exists when comparing Reline::Key and Integer
https://github.com/ruby/reline/commit/8fca5f6f9c
Diffstat (limited to 'lib/reline.rb')
-rw-r--r--lib/reline.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline.rb b/lib/reline.rb
index 33aa6cdbf1..82337c19ad 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -25,7 +25,7 @@ module Reline
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