1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/reline] Show even if it's only one candidate until a perfect match

https://github.com/ruby/reline/commit/fe7e34e79f
This commit is contained in:
aycabta 2021-09-04 00:42:39 +09:00 committed by git
parent 6fe1c0783d
commit f445d34c25

View file

@ -212,7 +212,7 @@ module Reline
result = call_completion_proc_with_checking_args(pre, target, post)
pointer = nil
end
if result and result.size == 1 and result[0] == target
if result and result.size == 1 and result[0] == target and pointer != 0
result = nil
end
target_width = Reline::Unicode.calculate_width(target)