Fixed a crash doing completion of commands
This commit is contained in:
parent
884b4026dd
commit
cdd5b1ed26
@ -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…
x
Reference in New Issue
Block a user