mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 16:21:15 -03: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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user