mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue