mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress error of macro not found
This commit is contained in:
parent
4b9869e7e0
commit
7b1c1b9492
1 changed files with 9 additions and 1 deletions
|
@ -647,7 +647,11 @@ class Reline::LineEditor
|
||||||
else
|
else
|
||||||
method_obj = nil
|
method_obj = nil
|
||||||
end
|
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]/
|
if key.chr =~ /[0-9]/
|
||||||
ed_argument_digit(key)
|
ed_argument_digit(key)
|
||||||
else
|
else
|
||||||
|
@ -684,6 +688,10 @@ class Reline::LineEditor
|
||||||
|
|
||||||
private def normal_char(key)
|
private def normal_char(key)
|
||||||
method_symbol = method_obj = nil
|
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
|
@multibyte_buffer << key.combined_char
|
||||||
if @multibyte_buffer.size > 1
|
if @multibyte_buffer.size > 1
|
||||||
if @multibyte_buffer.dup.force_encoding(@encoding).valid_encoding?
|
if @multibyte_buffer.dup.force_encoding(@encoding).valid_encoding?
|
||||||
|
|
Loading…
Add table
Reference in a new issue