Fix bug from the modified completion builtin where a completion that specified no switches would be ignored

darcs-hash:20060122233000-ac50b-779c3bbb08d1bdaaa6c6eae6192413d6b71aff21.gz
This commit is contained in:
axel 2006-01-23 09:30:00 +10:00
parent 7f01570caf
commit 0ccc657aa6

View file

@ -77,6 +77,20 @@ static void builtin_complete_add2( const wchar_t *cmd,
comp,
desc );
}
if( al_get_count( old_opt )+al_get_count( gnu_opt )+wcslen(short_opt) == 0 )
{
complete_add( cmd,
cmd_type,
0,
0,
0,
result_mode,
authorative,
condition,
comp,
desc );
}
}
static void builtin_complete_add( array_list_t *cmd,