Default#completer should return InputCompleter or Bond (not a Proc).

This commit is contained in:
Robert Gleeson 2014-01-21 08:49:47 +01:00
parent 3b3a97d682
commit eab4241ff6
1 changed files with 5 additions and 7 deletions

View File

@ -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
}
}