summaryrefslogtreecommitdiff
path: root/lib/reline.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-09-05 23:36:22 +0900
committergit <svn-admin@ruby-lang.org>2021-09-06 05:23:18 +0900
commit56ab22ab3daaedcef428a3ad623010f84e9e687c (patch)
treebae20ed1e065ec1aad0189c8498c24858a0367a0 /lib/reline.rb
parentbbb3162dd21903656344aea90c2ad47c89f695ad (diff)
[ruby/reline] Support for key bindings result Symbol in Reline::Key
https://github.com/ruby/reline/commit/cf78a38064
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 8fecb5c483..3569787a5d 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -22,7 +22,7 @@ module Reline
(key.char.nil? or char.nil? or char == key.char) and
(key.combined_char.nil? or combined_char.nil? or combined_char == key.combined_char) and
(key.with_meta.nil? or with_meta.nil? or with_meta == key.with_meta)
- elsif key.is_a?(Integer)
+ 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