summaryrefslogtreecommitdiff
path: root/lib/reline.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-09-06 22:50:10 +0900
committergit <svn-admin@ruby-lang.org>2021-09-06 22:50:11 +0900
commit966ed206a626ef19a5e4deaf77a6ee2a28453026 (patch)
treea61a9b9c864cfb03571078784896c5ebf46d875f /lib/reline.rb
parentafd7d1672f199f305f3cf9c7049ae83f5396c53b (diff)
[ruby/reline] Limit number of chars only when completion source text (pointer == -1)
https://github.com/ruby/reline/commit/1d7b603811
Diffstat (limited to 'lib/reline.rb')
-rw-r--r--lib/reline.rb2
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