-
Notifications
You must be signed in to change notification settings - Fork 270
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): wrong full help sep rendering #554
Conversation
We should add a test for this |
So I think this makes sense. @luevano, do you mind providing some minimal code we can use to replicate this (in addition to a test)? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, this is a solid fix. It just needs a test and we're good to go.
Alright, I have a test for this which I'll merge next. Thanks again for the excellent PR, and for your great patience with the one, @luevano. |
Hey @meowgorithm, sorry forgot about the request for the minimal code and test, been busy with work stuff lately; thanks for keeping things moving here for me! |
No worries, thanks again for the great PR! |
No matter the available horizontal space, sometimes the separator for the full help is not rendered. For example:
The issue is that the check if a separator needs to be rendered is done on
group
(the column) and notgroups
(the total columns). With this fixed:However, when there is enough space for the separator but not the column itself it renders the separator at the end:
This PR fixes these 2 issues and matches the behavior of the short help (adding a tail if needed/possible, rendering the separator inline, etc.). Behavior now: