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

Method selectPrevious

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

Source from the content-addressed store, hash-verified

203}
204
205func (ls *labelSelect) selectPrevious(g *gocui.Gui, v *gocui.View) error {
206 if ls.selected < 0 {
207 return nil
208 }
209
210 ls.selected = maxInt(0, ls.selected-1)
211 return ls.focusView(g)
212}
213
214func (ls *labelSelect) selectNext(g *gocui.Gui, v *gocui.View) error {
215 if ls.selected < 0 {

Callers

nothing calls this directly

Calls 2

focusViewMethod · 0.95
maxIntFunction · 0.85

Tested by

no test coverage detected