Skip to content

Fix truncated config prompts (fixes #94) #176

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

Merged
merged 1 commit into from
May 22, 2024
Merged

Fix truncated config prompts (fixes #94) #176

merged 1 commit into from
May 22, 2024

Conversation

jmoses
Copy link
Contributor

@jmoses jmoses commented May 22, 2024

This change removes the max dimension from the prompt-toolkit windows used during configuration. While the windows enabled the text to wrap, the max was set to the number of lines, so when the text had to wrap the previous lines ended up "scrolled" off the top of the window.

This should fix issue #94

@jmoses
Copy link
Contributor Author

jmoses commented May 22, 2024

CleanShot 2024-05-22 at 11 47 37@2x

Copy link
Owner

@hartwork hartwork left a comment

Choose a reason for hiding this comment

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

@jmoses I have drawn my own conclusions just now and came to the same result — thanks for the fix!

@hartwork hartwork added the bug Something isn't working label May 22, 2024
@hartwork hartwork linked an issue May 22, 2024 that may be closed by this pull request
Copy link
Owner

@hartwork hartwork left a comment

Choose a reason for hiding this comment

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

@jmoses could you make CI at https://github.com/hartwork/git-delete-merged-branches/actions/runs/9194449396/job/25288409696?pr=176#step:4:138 happy by adjusting the formatting slightly, as a second commit or amendment to the first one? Thank in advance!

@jmoses
Copy link
Contributor Author

jmoses commented May 22, 2024

Yeah, no problem. I didn't even notice the pre-commit config in the repo.

This change removes the `max` dimension from the prompt-toolkit windows
used during configuration.  While the windows enabled the text to wrap,
the max was set to the number of lines, so when the text had to wrap the
previous lines ended up "scrolled" off the top of the window.
@jmoses jmoses requested a review from hartwork May 22, 2024 16:04
Copy link
Owner

@hartwork hartwork left a comment

Choose a reason for hiding this comment

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

@jmoses thanks for the adjustment!

@hartwork hartwork merged commit a0f0640 into hartwork:master May 22, 2024
@hartwork hartwork changed the title fix(mac): Fix truncated config prompts for mac os Fix truncated config prompts (fixes #94) May 22, 2024
@jmoses jmoses deleted the fix-mac-narrow-terminal branch May 22, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configuration output is truncated (on macOS)?
2 participants