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

v0.5.3 breaks Select.Title when options don't fit on the screen #398

Open
adsr303 opened this issue Aug 31, 2024 · 1 comment · May be fixed by #485
Open

v0.5.3 breaks Select.Title when options don't fit on the screen #398

adsr303 opened this issue Aug 31, 2024 · 1 comment · May be fixed by #485
Labels
bug Something isn't working select

Comments

@adsr303
Copy link

adsr303 commented Aug 31, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Clone https://github.com/adsr303/manup. Note: Depends on whatis.
  2. go run . - the title "Choose manpage" should be visible.
  3. go get github.com/charmbracelet/huh@latest
  4. go mod tidy
  5. go run . - the title will not be visible.
  6. Add manOpts = manOpts[:5] in main.go:30.
  7. go run . - now all options fit in the screen and the title "Choose manpage" is visible.

This is a regression from v0.5.2.

Expected behavior
The title of the Select should be visible whether the options fit on the screen or not.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.4 LTS on Windows 10 x86_64
  • Kernel: 5.15.153.1-microsoft-standard-WSL2
  • Terminal: Windows Terminal, Tilix

Additional context
This may be somehow related to another observation: When any of the items don't fit on one line and wrap around, the title also doesn't appear.

@seeseemelk
Copy link

This seems related to my issue: #429

Though I can still get the options to break once a lot (read: all) options have to wrap

@caarlos0 caarlos0 added bug Something isn't working select labels Nov 26, 2024
@bashbunni bashbunni linked a pull request Nov 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working select
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants