mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Fixed a crash doing completion of commands
This commit is contained in:
parent
884b4026dd
commit
cdd5b1ed26
2 changed files with 2 additions and 3 deletions
|
@ -913,7 +913,6 @@ static void complete_cmd_desc( const wchar_t *cmd, std::vector<completion_t> &co
|
|||
{
|
||||
const wchar_t *cmd_start;
|
||||
int cmd_len;
|
||||
wchar_t *esc;
|
||||
int skip;
|
||||
|
||||
if( !cmd )
|
||||
|
|
|
@ -266,11 +266,11 @@ static int wildcard_complete_internal( const wchar_t *orig,
|
|||
|
||||
}
|
||||
|
||||
if( out_completion )
|
||||
if(out_completion)
|
||||
{
|
||||
completion_allocate( out,
|
||||
out_completion,
|
||||
out_desc,
|
||||
out_desc ? out_desc : L"",
|
||||
flags );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue