1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

remove instance_eval of Pry#custom_completions Proc.

This commit is contained in:
Robert Gleeson 2014-01-20 09:16:02 +01:00
parent 52f7260090
commit 92ec948029

View file

@ -113,9 +113,9 @@ class Pry
# @return [Array<String>] Possible completions
def complete(input)
Pry.critical_section do
Pry.config.completer.call(input, :target => current_binding,
config.completer.call input, :target => current_binding,
:pry => self,
:custom_completions => instance_eval(&custom_completions))
:custom_completions => custom_completions
end
end