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.
This commit is contained in:
yuvallangerontheroad 2024-04-16 14:38:23 +03:00 committed by GitHub
parent 051d3537e3
commit ffbbbf3477
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 */