зеркало из https://github.com/github/ruby.git
[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:
Родитель
afd7d1672f
Коммит
966ed206a6
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче