diff options
author | aycabta <aycabta@gmail.com> | 2021-09-06 22:50:10 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-06 22:50:11 +0900 |
commit | 966ed206a626ef19a5e4deaf77a6ee2a28453026 (patch) | |
tree | a61a9b9c864cfb03571078784896c5ebf46d875f /lib | |
parent | afd7d1672f199f305f3cf9c7049ae83f5396c53b (diff) | |
download | ruby-966ed206a626ef19a5e4deaf77a6ee2a28453026.tar.gz |
[ruby/reline] Limit number of chars only when completion source text (pointer == -1)
https://github.com/ruby/reline/commit/1d7b603811
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reline.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline.rb b/lib/reline.rb index 57a21b6644..2bf62df79d 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -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 |