Method: Reline::LineEditor#wrap_method_call

Defined in:
lib/reline/line_editor.rb

#wrap_method_call(method_symbol, method_obj, key) ⇒ Object



732
733
734
735
736
737
738
739
740
741
742
# File 'lib/reline/line_editor.rb', line 732

def wrap_method_call(method_symbol, method_obj, key)
  if @config.editing_mode_is?(:emacs, :vi_insert) and @waiting_proc.nil? and @waiting_operator_proc.nil?
    not_insertion = method_symbol != :ed_insert
    process_insert(force: not_insertion)
  end
  if @vi_arg
    method_obj.(key, arg: @vi_arg)
  else
    method_obj.(key)
  end
end