Skip to content

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

Open
@adsr303

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingselect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions