dualfroz ba0822d4e9 fix(multiselect): enforce selection limit while filtering
The toggle handler's limit guard indexed the unfiltered options slice
with the cursor, but the cursor tracks the filtered slice. When a filter
was applied the two indices diverged, so the guard inspected the wrong
option's selected state and allowed toggling past the configured Limit.

Index the option that is actually being toggled instead, and add a
regression test that selects up to the limit, filters, then verifies a
further toggle is a no-op.
2026-09-02 10:59:11 +02:00
S
Description
My contributions to charmbracelet/huh: 1 commits
57 KiB
0 Stars 1 Watchers 0 Forks
Languages
Go 100%