From a42abaaed74fb927da903d746ecf66381ce2ee8b Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 30 Aug 2020 11:30:57 +0200 Subject: termui: show the number of *additional* comments --- termui/bug_table.go | 6 +++--- 1 file 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 = " ∞" } -- cgit