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

Inconsistent behavior of choose --height 0 when using an empty --header #714

Open
yolocat-dev opened this issue Nov 13, 2024 · 0 comments
Open
Labels
bug Something isn't working cmd/choose

Comments

@yolocat-dev
Copy link

Describe the bug
When running gum choose --header "" "a" "b" "c" the --count 0 (default) flag draws one option too little.

To Reproduce
Steps to reproduce the behavior:

  1. Execute gum choose "a" "b" "c" and you'll see the three options displayed correctly.
  2. Execute gum choose --header "" "a" "b" "c" and you'll see that you have to navigate down to see option "c".

Expected behavior
Setting the --header flag to an empty string should still display all options when --height is set to 0 (default).

Screenshots
image

Desktop (please complete the following information):

  • OS: macOS 14.7.1 23H222 arm64
  • Version: gum version 0.14.5
@caarlos0 caarlos0 added cmd/choose bug Something isn't working labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cmd/choose
Projects
None yet
Development

No branches or pull requests

2 participants