From db2bbc4c715e26daec6deaa53f03e1b1d0482e83 Mon Sep 17 00:00:00 2001 From: huwwa Date: Mon, 4 May 2026 05:47:52 +0300 Subject: [PATCH] remove extra new line with caption * `ctime` format ends with a new line. --- modes/shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modes/shell.c b/modes/shell.c index 16e9e40..7580f48 100644 --- a/modes/shell.c +++ b/modes/shell.c @@ -2542,10 +2542,10 @@ static void shell_close(ShellState *s) else status = -1; if (status == 0) { - snprintf(buf, sizeof(buf), "\n%s finished at %s\n", + snprintf(buf, sizeof(buf), "\n%s finished at %s", s->caption, time_str); } else { - snprintf(buf, sizeof(buf), "\n%s exited abnormally with code %d at %s\n", + snprintf(buf, sizeof(buf), "\n%s exited abnormally with code %d at %s", s->caption, status, time_str); } }