diff options
author | aycabta <aycabta@gmail.com> | 2020-11-02 14:55:15 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2020-12-05 02:58:58 +0900 |
commit | 2dc4aca8d18ae8b5159da22c5d02b3052a7ac4ec (patch) | |
tree | b922fbf897eaca8d763aa3d79955791e019aa5df /lib | |
parent | 92b22db6a7d943328ef2776fb3b6a6924fc8b496 (diff) |
[ruby/reline] Operator with arg need to make sure that they take arg to avoid crashing
https://github.com/ruby/reline/commit/1c0c06de1f
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reline/line_editor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |