diff options
author | aycabta <aycabta@gmail.com> | 2021-09-04 00:42:39 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-04 02:16:28 +0900 |
commit | f445d34c254b386d8d1c0dacf06c814f00f1817e (patch) | |
tree | fb7ddd29bd7af8565563d00b3ea5d3697b22032b /lib/reline.rb | |
parent | 6fe1c0783d1ffe6edee03a95e7de94c999a6d40b (diff) |
[ruby/reline] Show even if it's only one candidate until a perfect match
https://github.com/ruby/reline/commit/fe7e34e79f
Diffstat (limited to 'lib/reline.rb')
-rw-r--r-- | lib/reline.rb | 2 |
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) |