mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-10 21:11:15 -03:00
More work towards getting function.h off of shared_ptr
This commit is contained in:
@@ -986,14 +986,10 @@ void completer_t::complete_cmd_desc( const wcstring &str )
|
||||
static wcstring complete_function_desc( const wcstring &fn )
|
||||
{
|
||||
wcstring result;
|
||||
|
||||
const wchar_t *res = function_get_desc( fn );
|
||||
if (res) {
|
||||
result = res;
|
||||
} else {
|
||||
bool has_description = function_get_desc(fn, &result);
|
||||
if (! has_description) {
|
||||
function_get_definition(fn, &result);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user