mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
parent
fdc005e54e
commit
8e463e3e73
1 changed files with 4 additions and 5 deletions
|
@ -189,12 +189,11 @@ module Reline
|
||||||
end
|
end
|
||||||
pre, target, post= retrieve_completion_block(true)
|
pre, target, post= retrieve_completion_block(true)
|
||||||
if target.nil? or target.empty?
|
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
|
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
|
end
|
||||||
target_width = Reline::Unicode.calculate_width(target)
|
target_width = Reline::Unicode.calculate_width(target)
|
||||||
x = cursor_pos.x - target_width
|
x = cursor_pos.x - target_width
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue