Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(help): use length of groups, not items within a group, for separator behavior #569

Closed
wants to merge 1 commit into from

Conversation

blvrd
Copy link
Contributor

@blvrd blvrd commented Jul 26, 2024

Fixes #568

In the demos below, I'm using xxxxxx as the FullSeparator to clearly demonstrate the behavior before/after.

Behavior before this fix

before fix

Behavior after this fix:

after_fix

@blvrd blvrd requested a review from meowgorithm as a code owner July 26, 2024 18:54
if i < len(group)-1 {
if i < len(groups)-1 {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the case of columns containing two items, this essentially said if i < 1, add the separator. This led to only the 0th column receiving the separator, no matter how many other columns are displayed.

@luevano
Copy link
Contributor

luevano commented Jul 27, 2024

I already had opened a PR for this: #554

@blvrd
Copy link
Contributor Author

blvrd commented Jul 27, 2024

I already had opened a PR for this: #554

Oops! Didn't look closely enough. Looks like your solution is more comprehensive. Closing in favor of #554.

@blvrd blvrd closed this Jul 27, 2024
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.

help: two-item columns are broken since #516
2 participants