diff --git a/lib/reline.rb b/lib/reline.rb index 18ccce2058..1b5c7a8ce3 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -194,7 +194,7 @@ module Reline # Auto complete starts only when edited return nil end - pre, target, post= retrieve_completion_block(true) + pre, target, post = retrieve_completion_block(true) if target.nil? or target.empty?# or target.size <= 3 return nil end