Skip to content

Commit

Permalink
Limit number of chars only when completion source text (pointer == -1)
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 6, 2021
1 parent 967e197 commit 1d7b603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def get_screen_size
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
Expand Down

0 comments on commit 1d7b603

Please sign in to comment.