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

Method previousPage

termui/bug_table.go:433–443  ·  view source on GitHub ↗
(g *gocui.Gui, v *gocui.View)

Source from the content-addressed store, hash-verified

431}
432
433func (bt *bugTable) previousPage(g *gocui.Gui, v *gocui.View) error {
434 _, max := v.Size()
435
436 if bt.pageCursor == 0 {
437 return nil
438 }
439
440 bt.pageCursor = maxInt(0, bt.pageCursor-max)
441
442 return bt.doPaginate(max)
443}
444
445func (bt *bugTable) newBug(g *gocui.Gui, v *gocui.View) error {
446 return newBugWithEditor(bt.repo)

Callers

nothing calls this directly

Calls 3

doPaginateMethod · 0.95
maxIntFunction · 0.85
SizeMethod · 0.45

Tested by

no test coverage detected