summaryrefslogtreecommitdiff
path: root/lib/reline.rb
diff options
context:
space:
mode:
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 81619dea77..d440b2d7ba 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -212,7 +212,7 @@ module Reline
result = call_completion_proc_with_checking_args(pre, target, post)
pointer = nil
end
- if result and result.size == 1 and result[0] == target
+ if result and result.size == 1 and result[0] == target and pointer != 0
result = nil
end
target_width = Reline::Unicode.calculate_width(target)