mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Default#completer should return InputCompleter or Bond (not a Proc).
This commit is contained in:
parent
3b3a97d682
commit
eab4241ff6
1 changed files with 5 additions and 7 deletions
|
@ -36,13 +36,11 @@ class Pry::Config::Default
|
|||
:command_completer => proc { proc { Pry.commands.commands.keys } },
|
||||
:file_completer => proc { proc { Dir["."] } },
|
||||
:completer => proc {
|
||||
proc {
|
||||
if defined?(Bond) && Readline::VERSION !~ /editline/i
|
||||
Pry::BondCompleter.start
|
||||
else
|
||||
Pry::InputCompleter.start
|
||||
end
|
||||
}
|
||||
if defined?(Bond) && Readline::VERSION !~ /editline/i
|
||||
Pry::BondCompleter.start
|
||||
else
|
||||
Pry::InputCompleter.start
|
||||
end
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue