From 70eedef32aa3e6f2a95fee7ce2582c247d274e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Barri=C3=A9?= Date: Tue, 17 Jan 2023 15:27:45 +0100 Subject: [PATCH] [ruby/reline] Splat is always an Array https://github.com/ruby/reline/commit/82095bd62b --- lib/reline/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reline/config.rb b/lib/reline/config.rb index 5ba269258f..87726393a6 100644 --- a/lib/reline/config.rb +++ b/lib/reline/config.rb @@ -93,7 +93,7 @@ class Reline::Config end def editing_mode_is?(*val) - (val.respond_to?(:any?) ? val : [val]).any?(@editing_mode_label) + val.any?(@editing_mode_label) end def keymap