(g *gocui.Gui, v *gocui.View)
| 212 | } |
| 213 | |
| 214 | func (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 | |
| 223 | func (ls *labelSelect) selectItem(g *gocui.Gui, v *gocui.View) error { |
| 224 | if ls.selected < 0 { |