Only add available commands to complete

This commit is contained in:
June McEnroe 2022-02-26 15:41:50 -05:00
parent 628e064056
commit b7fe705c91

View File

@ -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);
}
}