From dfec53e2395536c9f4d62961d561eee656d79c04 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 13 May 2018 19:23:33 +0200 Subject: [PATCH] com_help(): Fix comma placement. We never want to print a comma at the beginning of the line. --- tfortune.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tfortune.c b/tfortune.c index 0768976..29243fc 100644 --- a/tfortune.c +++ b/tfortune.c @@ -930,11 +930,11 @@ static void show_subcommand_summary(bool verbose) for (i = 0; i < LSG_NUM_TFORTUNE_SUBCOMMANDS; i++) { if (i > 0) n += printf(", "); - n += printf("%s", subcommand_names[i]); if (n > 70) { printf("\n\t"); n = 8; } + n += printf("%s", subcommand_names[i]); } printf("\n"); } -- 2.39.2