sh: fix skipped command completions when they expand the list

This commit is contained in:
K. Lange 2018-10-10 14:05:26 +09:00
parent 3534b9cda6
commit 781d4cc445

View File

@ -81,7 +81,6 @@ void shell_install_command(char * name, shell_command_t func, char * desc) {
shell_commands = realloc(shell_commands, sizeof(char *) * SHELL_COMMANDS); shell_commands = realloc(shell_commands, sizeof(char *) * SHELL_COMMANDS);
shell_pointers = realloc(shell_pointers, sizeof(shell_command_t) * SHELL_COMMANDS); shell_pointers = realloc(shell_pointers, sizeof(shell_command_t) * SHELL_COMMANDS);
shell_descript = realloc(shell_descript, sizeof(char *) * SHELL_COMMANDS); shell_descript = realloc(shell_descript, sizeof(char *) * SHELL_COMMANDS);
return;
} }
shell_commands[shell_commands_len] = name; shell_commands[shell_commands_len] = name;
shell_pointers[shell_commands_len] = func; shell_pointers[shell_commands_len] = func;