Skip to content

Commit

Permalink
Suppress error of macro not found
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Jun 1, 2019
1 parent 4b9869e commit 7b1c1b9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/reline/line_editor.rb
Expand Up @@ -647,7 +647,11 @@ def editing_mode
else
method_obj = nil
end
if @vi_arg
if method_symbol and key.is_a?(Symbol)
method_obj&.(key, arg: @vi_arg)
@kill_ring.process
@vi_arg = nil
elsif @vi_arg
if key.chr =~ /[0-9]/
ed_argument_digit(key)
else
Expand Down Expand Up @@ -684,6 +688,10 @@ def editing_mode

private def normal_char(key)
method_symbol = method_obj = nil
if key.combined_char.is_a?(Symbol)
process_key(key.combined_char, key.combined_char)
return
end
@multibyte_buffer << key.combined_char
if @multibyte_buffer.size > 1
if @multibyte_buffer.dup.force_encoding(@encoding).valid_encoding?
Expand Down

0 comments on commit 7b1c1b9

Please sign in to comment.