menu (minor): add space around operators for readability

This commit is contained in:
King Kévin 2019-03-26 19:52:46 +01:00
parent 230151a102
commit dbc395b3af
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ bool menu_handle_command(const char* line, const struct menu_command_t* command_
bool command_found = false; // remember if we found the corresponding command
for (size_t i = 0; i < command_list_length; i++) { // go through available command list
struct menu_command_t command = command_list[i]; // get current command
if ((1==strlen(word) && command.shortcut == word[0]) || 0 == strcmp(word, command.name)) { // check if shortcut or name match
if ((1 == strlen(word) && command.shortcut == word[0]) || 0 == strcmp(word, command.name)) { // check if shortcut or name match
command_found = true; // remember we found the command
if (command.command_handler) { // ensure there is an command handler
if (MENU_ARGUMENT_NONE == command.argument) { // check if argument can be passed