Only use the global fish_complete_path and fish_function_path

Prior to this fix, fish would attempt to react if a local fish_complete_path
or fish_function_path were set. However this has never been very well tested
and will become impossible with concurrent execution. Always use the global
values.
This commit is contained in:
ridiculousfish
2019-07-12 12:19:00 -07:00
parent 7ee675afcf
commit d577eb4aaa
3 changed files with 5 additions and 3 deletions

View File

@@ -104,7 +104,7 @@ static void try_autoload(const wcstring &name, parser_t &parser) {
{
auto funcset = function_set.acquire();
if (funcset->allow_autoload(name)) {
path_to_autoload = funcset->autoloader.resolve_command(name, parser.vars());
path_to_autoload = funcset->autoloader.resolve_command(name, env_stack_t::globals());
}
}