aboutsummaryrefslogtreecommitdiffstats
path: root/termui
diff options
context:
space:
mode:
Diffstat (limited to 'termui')
-rw-r--r--termui/bug_table.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/termui/bug_table.go b/termui/bug_table.go
index 3567da09..c589d337 100644
--- a/termui/bug_table.go
+++ b/termui/bug_table.go
@@ -297,11 +297,11 @@ func (bt *bugTable) render(v *gocui.View, maxX int) {
columnWidths := bt.getColumnWidths(maxX)
for _, excerpt := range bt.excerpts {
- summaryTxt := fmt.Sprintf("%3d", excerpt.LenComments)
- if excerpt.LenComments <= 0 {
+ summaryTxt := fmt.Sprintf("%3d", excerpt.LenComments-1)
+ if excerpt.LenComments-1 <= 0 {
summaryTxt = ""
}
- if excerpt.LenComments > 999 {
+ if excerpt.LenComments-1 > 999 {
summaryTxt = " ∞"
}