Closed keepcosmos closed 7 years ago
Thanks for reporting! I haven't tested well the case when there is less options than per_page
param.
Screenshot to remind me about the problem:
Also there doesn't seem to be a way to set default per_page
If you set per_page to 15 and you have 14 items, the title duplication happens.
If you set per_page to 14 and you have 14 items, you get the "(Move up or down to reveal more choices)" even though there's only one page of items.
Currently the per_page
is per specific prompt configuration option. I don't see a problem why we couldn't have it as a TTY::Prompt.new
configuration option. I will see if I've got time to fix it today.
@keepcosmos Released v0.11.0
. Enjoy!
@piotrmurach Thanks 👍
Very thanks for adding per_page option that is what i exactly want. :)
But only one issue is question title is reproduced each time arrow key is pressed when elements are less than
per_page
value. <- I am sure only this case happen or not.