aboutsummaryrefslogtreecommitdiffstats
path: root/termui
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-08-30 11:30:57 +0200
committerMichael Muré <batolettre@gmail.com>2020-08-30 11:30:57 +0200
commita42abaaed74fb927da903d746ecf66381ce2ee8b (patch)
tree1878c229180f6593a92127b198ecd7e8e3af8b7f /termui
parent5a4dc7aade221a15e590e1491d988d9030e4a4d9 (diff)
downloadgit-bug-a42abaaed74fb927da903d746ecf66381ce2ee8b.tar.gz
termui: show the number of *additional* comments
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 = " ∞"
}