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

[ruby/reline] Limit number of chars only when completion source text (pointer == -1)

https://github.com/ruby/reline/commit/1d7b603811
This commit is contained in:
aycabta 2021-09-06 22:50:10 +09:00 committed by git
parent afd7d1672f
commit 966ed206a6

View file

@ -214,7 +214,7 @@ module Reline
return nil
end
pre, target, post = retrieve_completion_block(true)
if target.nil? or target.empty? or target.size <= 3
if target.nil? or target.empty? or (completion_journey_data&.pointer == -1 and target.size <= 3)
return nil
end
if completion_journey_data and completion_journey_data.list