We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentcc41fe7 commit3a3ee03Copy full SHA for 3a3ee03
cli/cliui/select.go
@@ -195,7 +195,7 @@ func (m selectModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
195
ifm.cursor>0 {
196
m.cursor--
197
}else {
198
-m.cursor=len(options)
+m.cursor=len(options)-1
199
}
200
201
casetea.KeyDown:
@@ -378,9 +378,9 @@ type multiSelectModel struct {
378
messagestring
379
canceledbool
380
selectedbool
381
-isCustomInputModebool//New field totrack if we're adding a custom option
382
-customInputstring//New field tostore custom input
383
-enableCustomInputbool//New field tocontrol whether custom input is allowed
+isCustomInputModebool// track if we're adding a custom option
+customInputstring// store custom input
+enableCustomInputbool// control whether custom input is allowed
384
385
386
func (multiSelectModel)Init() tea.Cmd {