Only add available commands to complete

master
June McEnroe 2022-02-26 15:41:50 -05:00
parent 628e064056
commit b7fe705c91
1 changed files with 1 additions and 0 deletions

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