Only add available commands to complete
This commit is contained in:
parent
628e064056
commit
b7fe705c91
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user