Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3a3ee03

Browse files
committed
chore: remove unwanted change
1 parentcc41fe7 commit3a3ee03

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
ifm.cursor>0 {
196196
m.cursor--
197197
}else {
198-
m.cursor=len(options)
198+
m.cursor=len(options)-1
199199
}
200200

201201
casetea.KeyDown:
@@ -378,9 +378,9 @@ type multiSelectModel struct {
378378
messagestring
379379
canceledbool
380380
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
381+
isCustomInputModebool// track if we're adding a custom option
382+
customInputstring// store custom input
383+
enableCustomInputbool// control whether custom input is allowed
384384
}
385385

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp