Only add available commands to complete
parent
628e064056
commit
b7fe705c91
|
@ -692,6 +692,7 @@ void command(uint id, char *input) {
|
||||||
|
|
||||||
void commandCompleteAdd(void) {
|
void commandCompleteAdd(void) {
|
||||||
for (size_t i = 0; i < ARRAY_LEN(Commands); ++i) {
|
for (size_t i = 0; i < ARRAY_LEN(Commands); ++i) {
|
||||||
|
if (!commandAvailable(&Commands[i])) continue;
|
||||||
completeAdd(None, Commands[i].cmd, Default);
|
completeAdd(None, Commands[i].cmd, Default);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue