From 2dc4aca8d18ae8b5159da22c5d02b3052a7ac4ec Mon Sep 17 00:00:00 2001 From: aycabta Date: Mon, 2 Nov 2020 14:55:15 +0900 Subject: [ruby/reline] Operator with arg need to make sure that they take arg to avoid crashing https://github.com/ruby/reline/commit/1c0c06de1f --- lib/reline/line_editor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index f6cf0c5280..86d57d905b 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -735,7 +735,7 @@ class Reline::LineEditor not_insertion = method_symbol != :ed_insert process_insert(force: not_insertion) end - if @vi_arg + if @vi_arg and argumentable?(method_obj) method_obj.(key, arg: @vi_arg) else method_obj.(key) -- cgit v1.2.3