mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03:00
Fixed a crash doing completion of commands
This commit is contained in:
@@ -913,7 +913,6 @@ static void complete_cmd_desc( const wchar_t *cmd, std::vector<completion_t> &co
|
|||||||
{
|
{
|
||||||
const wchar_t *cmd_start;
|
const wchar_t *cmd_start;
|
||||||
int cmd_len;
|
int cmd_len;
|
||||||
wchar_t *esc;
|
|
||||||
int skip;
|
int skip;
|
||||||
|
|
||||||
if( !cmd )
|
if( !cmd )
|
||||||
|
|||||||
@@ -266,11 +266,11 @@ static int wildcard_complete_internal( const wchar_t *orig,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( out_completion )
|
if(out_completion)
|
||||||
{
|
{
|
||||||
completion_allocate( out,
|
completion_allocate( out,
|
||||||
out_completion,
|
out_completion,
|
||||||
out_desc,
|
out_desc ? out_desc : L"",
|
||||||
flags );
|
flags );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user