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:
parent
afd7d1672f
commit
966ed206a6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue