diff options
author | Mari Imaizumi <mariimaizumi5@gmail.com> | 2024-04-19 21:08:18 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-04-19 12:08:22 +0000 |
commit | 604c29e8a2e78ea5d6c0e76385000ed6cde78aca (patch) | |
tree | a5a2a946b3c136414e2657380279881abbc2ed86 /test/reline/yamatanooroti/multiline_repl | |
parent | 4218e6bbd50f2e5bc1fd39d8e504c0d7ef96dc15 (diff) |
[ruby/reline] Implement `show-all-if-ambiguous` feature
(https://github.com/ruby/reline/pull/683)
https://github.com/ruby/reline/commit/0fe4fdc794
Diffstat (limited to 'test/reline/yamatanooroti/multiline_repl')
-rwxr-xr-x | test/reline/yamatanooroti/multiline_repl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/reline/yamatanooroti/multiline_repl b/test/reline/yamatanooroti/multiline_repl index 66bcf51e1a..eba410f6dd 100755 --- a/test/reline/yamatanooroti/multiline_repl +++ b/test/reline/yamatanooroti/multiline_repl @@ -143,6 +143,11 @@ opt.on('--complete') { %w{String ScriptError SyntaxError Signal}.select{ |c| c.start_with?(target) } } } +opt.on('--complete-menu-with-perfect-match') { + Reline.completion_proc = lambda { |target, preposing = nil, postposing = nil| + %w{abs abs2}.select{ |c| c.start_with?(target) } + } +} opt.on('--autocomplete') { Reline.autocompletion = true Reline.completion_proc = lambda { |target, preposing = nil, postposing = nil| |