1
0
Fork 0
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:
Robert Gleeson 2014-01-21 08:49:47 +01:00
parent 3b3a97d682
commit eab4241ff6

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