aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--termui/bug_table.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/termui/bug_table.go b/termui/bug_table.go
index f300c422..fc5e6aa1 100644
--- a/termui/bug_table.go
+++ b/termui/bug_table.go
@@ -209,7 +209,7 @@ func (bt *bugTable) paginate(max int) error {
func (bt *bugTable) doPaginate(allIds []string, max int) error {
// clamp the cursor
bt.pageCursor = maxInt(bt.pageCursor, 0)
- bt.pageCursor = minInt(bt.pageCursor, len(allIds)-1)
+ bt.pageCursor = minInt(bt.pageCursor, len(allIds))
nb := minInt(len(allIds)-bt.pageCursor, max)