Diff between e199cd9bca4bb24b15e9bc5ee573f4a574eef87c and 5b3a4b9f562ebc72a72ad72e6ce49f7bfb433397

Changed Files

File Additions Deletions Status
src/shared/shell.c +3 -2 modified

Full Patch

diff --git a/src/shared/shell.c b/src/shared/shell.c
index a4be844..f9dbdb1 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -198,8 +198,9 @@ static void shell_print_menu(void)
 		/* Skip menu command if not on main menu or if there are no
 		 * submenus.
 		 */
-		if ((data.menu != data.main && !strcmp(entry->cmd, "menu")) ||
-					queue_isempty(data.submenus))
+		if (!strcmp(entry->cmd, "menu") &&
+			(data.menu != data.main ||
+				queue_isempty(data.submenus)))
 			continue;
 
 		/* Skip back command if on main menu */