From b7fe705c9143a8bae6b0e87e62c9568265291484 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 26 Feb 2022 15:41:50 -0500 Subject: Only add available commands to complete --- command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/command.c b/command.c index 511bc62..60281d9 100644 --- a/command.c +++ b/command.c @@ -692,6 +692,7 @@ void command(uint id, char *input) { void commandCompleteAdd(void) { for (size_t i = 0; i < ARRAY_LEN(Commands); ++i) { + if (!commandAvailable(&Commands[i])) continue; completeAdd(None, Commands[i].cmd, Default); } } -- cgit 1.4.1