mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 12:28:39 +08: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
|
@ -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
|
else
|
||||||
{
|
{
|
||||||
builtin_complete_remove3(cmd,
|
builtin_complete_remove3(cmd,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user