From f445d34c254b386d8d1c0dacf06c814f00f1817e Mon Sep 17 00:00:00 2001 From: aycabta Date: Sat, 4 Sep 2021 00:42:39 +0900 Subject: [PATCH] [ruby/reline] Show even if it's only one candidate until a perfect match https://github.com/ruby/reline/commit/fe7e34e79f --- lib/reline.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)