When autoloading a completion, also autoload the function

Fixes a case where a --wraps declaration would be missed
because the function would not be loaded. Fixes #2466.
This commit is contained in:
ridiculousfish
2015-10-07 18:59:41 -07:00
parent 434eabb787
commit d9d2f61ba6
4 changed files with 20 additions and 14 deletions

View File

@@ -130,6 +130,9 @@ void function_set_desc(const wcstring &name, const wcstring &desc);
*/
int function_exists(const wcstring &name);
/** Attempts to load a function if not yet loaded. This is used by the completion machinery. */
void function_load(const wcstring &name);
/**
Returns true if the function with the name name exists, without triggering autoload.
*/