Skip to content

Commit 3a3ee03

Browse files
committed
chore: remove unwanted change
1 parent cc41fe7 commit 3a3ee03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cli/cliui/select.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func (m selectModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
195195
if m.cursor > 0 {
196196
m.cursor--
197197
} else {
198-
m.cursor = len(options)
198+
m.cursor = len(options) - 1
199199
}
200200

201201
case tea.KeyDown:
@@ -378,9 +378,9 @@ type multiSelectModel struct {
378378
message string
379379
canceled bool
380380
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
384384
}
385385

386386
func (multiSelectModel) Init() tea.Cmd {

0 commit comments

Comments
 (0)