app: Don't tab-complete on aliases

Fixes https://github.com/flatpak/flatpak/issues/4036
This commit is contained in:
Phaedrus Leeds
2021-11-17 18:18:44 -08:00
committed by Alexander Larsson
parent dfde010a49
commit 2c4c84ffee

View File

@@ -876,7 +876,7 @@ complete (int argc,
FlatpakCommand *c = commands;
while (c->name)
{
if (c->fn != NULL)
if (c->fn != NULL && !c->deprecated)
flatpak_complete_word (completion, "%s ", c->name);
c++;
}