Skip to content

Fix first option not truncated when description is present - #172

Merged
aisk merged 1 commit into
masterfrom
fix-description-first-option-truncation
Nov 21, 2026
Merged

aisk merged 1 commit into
masterfrom
fix-description-first-option-truncation

Conversation

@aisk

@aisk aisk commented Nov 21, 2026

Copy link
Copy Markdown
Owner

When any option has a description, option lines are supposed to be truncated to the left half of the screen so they don't overlap the description column. The check used i > title_length, so the first option line (at i == title_length) was drawn at full width, and its label leaked out after the description text:

before: * first option has a really loshortbel -------------------
after:  * first option has a really   short

This changes the check to i >= title_length and adds a test with an in-memory Backend to verify the rendered output.

@aisk
aisk merged commit d0c8209 into master Nov 21, 2026
16 of 18 checks passed
@aisk
aisk deleted the fix-description-first-option-truncation branch November 21, 2026 16:21
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