replace += with ++

This commit is contained in:
bartfokker 2018-10-25 22:17:53 +02:00
parent 4d247f5272
commit 93556a1754
1 changed files with 2 additions and 1 deletions

View File

@ -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