MCPcopy Index your code
hub / github.com/git-bug/git-bug / selectNext

Method selectNext

termui/label_select.go:214–221  ·  view source on GitHub ↗
(g *gocui.Gui, v *gocui.View)

Source from the content-addressed store, hash-verified

212}
213
214func (ls *labelSelect) selectNext(g *gocui.Gui, v *gocui.View) error {
215 if ls.selected < 0 {
216 return nil
217 }
218
219 ls.selected = minInt(len(ls.labels)-1, ls.selected+1)
220 return ls.focusView(g)
221}
222
223func (ls *labelSelect) selectItem(g *gocui.Gui, v *gocui.View) error {
224 if ls.selected < 0 {

Callers

nothing calls this directly

Calls 2

focusViewMethod · 0.95
minIntFunction · 0.85

Tested by

no test coverage detected