(g *gocui.Gui, v *gocui.View)
| 368 | } |
| 369 | |
| 370 | func (bt *bugTable) cursorDown(g *gocui.Gui, v *gocui.View) error { |
| 371 | // If we are at the bottom of the page, switch to the next one. |
| 372 | if bt.selectCursor+1 > bt.getTableLength()-1 { |
| 373 | _, max := v.Size() |
| 374 | |
| 375 | if bt.pageCursor+max >= len(bt.allIds) { |
| 376 | return nil |
| 377 | } |
| 378 | |
| 379 | bt.pageCursor += max |
| 380 | bt.selectCursor = 0 |
| 381 | |
| 382 | return bt.doPaginate(max) |
| 383 | } |
| 384 | |
| 385 | bt.selectCursor = minInt(bt.selectCursor+1, bt.getTableLength()-1) |
| 386 | |
| 387 | return nil |
| 388 | } |
| 389 | |
| 390 | func (bt *bugTable) cursorUp(g *gocui.Gui, v *gocui.View) error { |
| 391 | // If we are at the top of the page, switch to the previous one. |
nothing calls this directly
no test coverage detected