File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ func (m selectModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
195
195
if m .cursor > 0 {
196
196
m .cursor --
197
197
} else {
198
- m .cursor = len (options )
198
+ m .cursor = len (options ) - 1
199
199
}
200
200
201
201
case tea .KeyDown :
@@ -378,9 +378,9 @@ type multiSelectModel struct {
378
378
message string
379
379
canceled bool
380
380
selected bool
381
- isCustomInputMode bool // New field to track if we're adding a custom option
382
- customInput string // New field to store custom input
383
- enableCustomInput bool // New field to control whether custom input is allowed
381
+ isCustomInputMode bool // track if we're adding a custom option
382
+ customInput string // store custom input
383
+ enableCustomInput bool // control whether custom input is allowed
384
384
}
385
385
386
386
func (multiSelectModel ) Init () tea.Cmd {
You can’t perform that action at this time.
0 commit comments