Skip to content

fix: add missing newline to xsystem error message - #51

Open
yohny1 wants to merge 1 commit into
baszoetekouw:mainfrom
yohny1:fix-xsystem-newline
Open

fix: add missing newline to xsystem error message#51
yohny1 wants to merge 1 commit into
baszoetekouw:mainfrom
yohny1:fix-xsystem-newline

Conversation

@yohny1

@yohny1 yohny1 commented Jun 10, 2026

Copy link
Copy Markdown

Description

This PR fixes a minor UI formatting issue where the shell prompt would append directly to the end of the error message when xsystem() fails. This occurs because the printf statement inside xsystem() (in src/utils.c) is missing a trailing newline character (\n).

Changes

  • Added a missing \n to the printf format string in src/utils.c inside the xsystem function.

How to test

Before this fix, running pinfo with a directory argument (which triggers a cat error under the hood) would mangle the terminal output like this:

before

After applying this fix, the shell prompt correctly moves to a new line after the error message is printed:

after

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant