charmbracelet / gum

A tool for glamorous shell scripts 🎀
MIT License
17.94k stars 339 forks source link

gum choose --selected=: cursor do not appear #606

Open vt-alt opened 3 months ago

vt-alt commented 3 months ago

Describe the bug With gum choose --selected= when selected item is out of the screen cursor do not appear nor item is selected.

To Reproduce

$ seq 22 | gum choose --selected=11
┃ Choose:
┃   1
┃   2
┃   3
┃   4
┃   5
┃   6
┃   7
┃   8

↑ up • ↓ down • / filter • enter submit

Expected behavior Version (0.12.0) had it working correctly:

$ seq 22 | gum choose --selected=11
> 11
  12
  13
  14
  15
  16
  17
  18
  19
  20

Desktop (please complete the following information):

bashbunni commented 2 months ago

fwiw it's not working with huh's multi select either (when choose's limit > 1)