Skip to content

Fix misaligned "No content" line for non-default --panels and --border - #283

Open
upuddu wants to merge 1 commit into
sharkdp:masterfrom
upuddu:fix-empty-input-panel-alignment
Open

Fix misaligned "No content" line for non-default --panels and --border#283
upuddu wants to merge 1 commit into
sharkdp:masterfrom
upuddu:fix-empty-input-panel-alignment

Conversation

@upuddu

@upuddu upuddu commented Jul 7, 2026

Copy link
Copy Markdown

The No content line shown for empty input assumed exactly two panels and the Unicode border, so it didn't line up with the box for other --panels counts and ignored --border=ascii/--border=none. This builds the line from the actual panel count and the active border separator; the default two-panel output is byte-for-byte unchanged.

The "No content" line printed for empty input hardcoded two hex panels,
two character panels and the Unicode separator. As a result it did not
line up with the surrounding border for any other `--panels` count and
ignored `--border=ascii`/`--border=none`. Build the line from the actual
panel count and border separator instead.
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