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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant