Skip to content

Commit

Permalink
replace += with ++
Browse files Browse the repository at this point in the history
  • Loading branch information
barthr committed Oct 25, 2018
1 parent 4d247f5 commit 93556a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cwidgets/compact/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package compact

import (
"fmt"

ui "github.com/gizak/termui"
)

Expand All @@ -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
Expand Down

0 comments on commit 93556a1

Please sign in to comment.