ruby-changes:67588
From: aycabta <ko1@a...>
Date: Sat, 4 Sep 2021 02:16:42 +0900 (JST)
Subject: [ruby-changes:67588] f445d34c25 (master): [ruby/reline] Show even if it's only one candidate until a perfect match
https://git.ruby-lang.org/ruby.git/commit/?id=f445d34c25 From f445d34c254b386d8d1c0dacf06c814f00f1817e Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Sat, 4 Sep 2021 00:42:39 +0900 Subject: [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 81619de..d440b2d 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -212,7 +212,7 @@ module Reline https://github.com/ruby/ruby/blob/trunk/lib/reline.rb#L212 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) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/