From 56ab22ab3daaedcef428a3ad623010f84e9e687c Mon Sep 17 00:00:00 2001 From: aycabta Date: Sun, 5 Sep 2021 23:36:22 +0900 Subject: [PATCH] [ruby/reline] Support for key bindings result Symbol in Reline::Key https://github.com/ruby/reline/commit/cf78a38064 --- lib/reline.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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