mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 04:13:08 +00:00
Erase all completions with complete -c foo -e
When passing `-e` to `complete -c foo` without any other options, all options for the command should be erased. Fixes #380.
This commit is contained in:
parent
edd4f3d5ad
commit
2820c7a9cd
1 changed files with 8 additions and 0 deletions
|
@ -224,6 +224,14 @@ static void builtin_complete_remove2(const wchar_t *cmd,
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (gnu_opt.empty() && old_opt.empty())
|
||||
{
|
||||
complete_remove(cmd,
|
||||
cmd_type,
|
||||
0,
|
||||
0,
|
||||
0);
|
||||
}
|
||||
else
|
||||
{
|
||||
builtin_complete_remove3(cmd,
|
||||
|
|
Loading…
Reference in a new issue