Fix completion bug where fish would refuse to provide completion strings for '--'
darcs-hash:20070116015938-ac50b-353566d9fd8984cabd56127a9088d57695e2b7ba.gz
This commit is contained in:
parent
7492b6cdb3
commit
461ef2a508
@ -2131,7 +2131,7 @@ void complete( const wchar_t *cmd,
|
||||
{
|
||||
|
||||
wchar_t *ncmd = tok_last( &tok );
|
||||
int is_ddash = wcscmp( ncmd, L"--" ) == 0;
|
||||
int is_ddash = (wcscmp( ncmd, L"--" ) == 0) && ( (tok_get_pos( &tok )+2) < pos );
|
||||
|
||||
if( !had_cmd )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user