Skip to content

Commit

Permalink
Add a newline at the end of the version option output. (#5980)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yuvallangerontheroad committed Apr 16, 2024
1 parent 051d353 commit ffbbbf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i3-input/main.c
Expand Up @@ -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 */
Expand Down

0 comments on commit ffbbbf3

Please sign in to comment.