mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
fdc005e54e
commit
8e463e3e73
1 changed files with 4 additions and 5 deletions
|
@ -189,12 +189,11 @@ module Reline
|
|||
end
|
||||
pre, target, post= retrieve_completion_block(true)
|
||||
if target.nil? or target.empty?
|
||||
return nil
|
||||
end
|
||||
result = call_completion_proc_with_checking_args(pre, target, post)
|
||||
if result and result.size == 1 and result[0] == target
|
||||
result = nil
|
||||
else
|
||||
result = call_completion_proc_with_checking_args(pre, target, post)
|
||||
if result and result.size == 1 and result[0] == target
|
||||
result = nil
|
||||
end
|
||||
end
|
||||
target_width = Reline::Unicode.calculate_width(target)
|
||||
x = cursor_pos.x - target_width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue