rename "*_completer" to "*_completions"
Config#file_completer -> Config#file_completions. Config#command_completer -> Config#command_completions.
This commit is contained in:
parent
247e4af83c
commit
c7eed553ff
|
@ -12,10 +12,10 @@ class Pry
|
|||
case _pry_.prompt
|
||||
when Pry::SHELL_PROMPT
|
||||
_pry_.pop_prompt
|
||||
_pry_.custom_completions = _pry_.config.file_completer
|
||||
_pry_.custom_completions = _pry_.config.file_completions
|
||||
else
|
||||
_pry_.push_prompt Pry::SHELL_PROMPT
|
||||
_pry_.custom_completions = _pry_.config.command_completer
|
||||
_pry_.custom_completions = _pry_.config.command_completions
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -33,8 +33,8 @@ class Pry::Config::Default
|
|||
:control_d_handler => proc { Pry::DEFAULT_CONTROL_D_HANDLER },
|
||||
:memory_size => proc { 100 },
|
||||
:extra_sticky_locals => proc { {} },
|
||||
:command_completer => proc { proc { Pry.commands.commands.keys } },
|
||||
:file_completer => proc { proc { Dir["."] } },
|
||||
:command_completions => proc { proc { Pry.commands.commands.keys } },
|
||||
:file_completions => proc { proc { Dir["."] } },
|
||||
:completer => proc { lazy_completer }
|
||||
}
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ class Pry
|
|||
push_prompt(config.prompt)
|
||||
@input_array = Pry::HistoryArray.new config.memory_size
|
||||
@output_array = Pry::HistoryArray.new config.memory_size
|
||||
@custom_completions = config.command_completer
|
||||
@custom_completions = config.command_completions
|
||||
push_initial_binding(options[:target])
|
||||
set_last_result nil
|
||||
@input_array << nil
|
||||
|
|
Loading…
Reference in New Issue