Skip to content

Conversation

@danielchristiancazares
Copy link
Contributor

Follow up to #7161
obo: Strings were getting cut one letter shorter than they needed to be.

Copy link
Contributor

@Goober5000 Goober5000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Please add a bit more information to the comment.

str[len] = ellipsis_char;
}

// measure with ellipsis before shrinking further
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a note to this comment, something like (because the characters could be narrower than the characters they replaced) to explain why

@Goober5000 Goober5000 added fix A fix for bugs, not-a-bugs, and/or regressions. Waiting for Stable Marks a pull request that is to be merged after the next stable release, due to a release cycle Point Release Candidate An already merged bugfix that may be merged into a previous stable version labels Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A fix for bugs, not-a-bugs, and/or regressions. Point Release Candidate An already merged bugfix that may be merged into a previous stable version Waiting for Stable Marks a pull request that is to be merged after the next stable release, due to a release cycle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants