From dbc395b3af3a3f6bb80e851066335a298623525d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Tue, 26 Mar 2019 19:52:46 +0100 Subject: [PATCH] menu (minor): add space around operators for readability --- lib/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/menu.c b/lib/menu.c index f451352..6db298d 100644 --- a/lib/menu.c +++ b/lib/menu.c @@ -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