From b5d4ec61fcb82c88b7e25ad78651e070194c33f0 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Thu, 9 Dec 2021 21:43:54 +0100 Subject: [PATCH] Move newline generation in help If we removed the shortcuts intro, we would not need the additional '\n' of the section title, so it should be printed along with the shortcuts intro. --- app/src/cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/cli.c b/app/src/cli.c index 2ecf96f1..2281c255 100644 --- a/app/src/cli.c +++ b/app/src/cli.c @@ -776,7 +776,7 @@ print_shortcuts_intro(unsigned cols) { return; } - printf("%s\n", intro); + printf("\n%s\n", intro); free(intro); } @@ -831,7 +831,7 @@ scrcpy_print_usage(const char *arg0) { } // Print shortcuts section - printf("\nShortcuts:\n\n"); + printf("\nShortcuts:\n"); print_shortcuts_intro(cols); for (size_t i = 0; i < ARRAY_LEN(shortcuts); ++i) { print_shortcut(&shortcuts[i], cols);