complete.cpp: correct a comment

[ci skip]
This commit is contained in:
David Adam 2020-08-13 16:03:05 +08:00
parent d3f8445bcb
commit 70f51937d9

View file

@ -854,7 +854,7 @@ static void complete_load(const wcstring &name) {
// It's important to NOT hold the lock around completion loading. // It's important to NOT hold the lock around completion loading.
// We need to take the lock to decide what to load, drop it to perform the load, then reacquire // We need to take the lock to decide what to load, drop it to perform the load, then reacquire
// it. // it.
// Note we only look at the global fish_function_path and fish_completion_path. // Note we only look at the global fish_function_path and fish_complete_path.
maybe_t<wcstring> path_to_load = maybe_t<wcstring> path_to_load =
completion_autoloader.acquire()->resolve_command(name, env_stack_t::globals()); completion_autoloader.acquire()->resolve_command(name, env_stack_t::globals());
if (path_to_load) { if (path_to_load) {