From ffbbbf347703a50c452d766a8bf7e4b12e7c1d72 Mon Sep 17 00:00:00 2001 From: yuvallangerontheroad Date: Tue, 16 Apr 2024 14:38:23 +0300 Subject: Add a newline at the end of the version option output. (#5980) If there is no newline character at the end of the version option's output, the next command line prompt is written left to the version, rather than under it. --- i3-input/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3-input/main.c b/i3-input/main.c index c61a58e6..612a1adf 100644 --- a/i3-input/main.c +++ b/i3-input/main.c @@ -407,7 +407,7 @@ int main(int argc, char *argv[]) { socket_path = sstrdup(optarg); break; case 'v': - printf("i3-input " I3_VERSION); + printf("i3-input " I3_VERSION "\n"); return EXIT_OK; case 'p': /* This option is deprecated, but will still work in i3 v4.1, 4.2 and 4.3 */ -- cgit v1.2.3-54-g00ecf