From 93556a1754687a41ab9cb7bacfcbb12f710b89f3 Mon Sep 17 00:00:00 2001 From: bartfokker Date: Thu, 25 Oct 2018 22:17:53 +0200 Subject: [PATCH] replace += with ++ --- cwidgets/compact/util.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cwidgets/compact/util.go b/cwidgets/compact/util.go index b378209..e634ed9 100644 --- a/cwidgets/compact/util.go +++ b/cwidgets/compact/util.go @@ -4,6 +4,7 @@ package compact import ( "fmt" + ui "github.com/gizak/termui" ) @@ -28,7 +29,7 @@ func calcWidth(width int) int { for _, w := range colWidths { width -= w if w == 0 { - staticCols += 1 + staticCols++ } } return (width - spacing) / staticCols