ruby-changes:67617
From: aycabta <ko1@a...>
Date: Mon, 6 Sep 2021 05:23:30 +0900 (JST)
Subject: [ruby-changes:67617] 56ab22ab3d (master): [ruby/reline] Support for key bindings result Symbol in Reline::Key
https://git.ruby-lang.org/ruby.git/commit/?id=56ab22ab3d From 56ab22ab3daaedcef428a3ad623010f84e9e687c Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Sun, 5 Sep 2021 23:36:22 +0900 Subject: [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 8fecb5c..3569787 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -22,7 +22,7 @@ module Reline https://github.com/ruby/ruby/blob/trunk/lib/reline.rb#L22 (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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/