summaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2018-04-14 08:18:18 -0700
committerCaleb Bassi <calebjbassi@gmail.com>2018-04-14 09:01:45 -0700
commit4d809023d356c6094725d6558c2c5757075c7234 (patch)
tree10f46e26a65cf1f0fe92d403e0557651f654c85c /widgets
parente185593334611bb7cedd5ff8d3df6657d7dbc1f6 (diff)
Code cleanup
Diffstat (limited to 'widgets')
-rw-r--r--widgets/proc.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/widgets/proc.go b/widgets/proc.go
index cd48219..89ef58c 100644
--- a/widgets/proc.go
+++ b/widgets/proc.go
@@ -140,7 +140,11 @@ func (self *Proc) ColResize() {
self.X - self.Gap - self.ColWidths[3],
}
- rowWidth := self.Gap + self.ColWidths[0] + self.Gap + self.ColWidths[1] + self.Gap + self.ColWidths[2] + self.Gap + self.ColWidths[3] + self.Gap
+ rowWidth := self.Gap +
+ self.ColWidths[0] + self.Gap +
+ self.ColWidths[1] + self.Gap +
+ self.ColWidths[2] + self.Gap +
+ self.ColWidths[3] + self.Gap
// only renders a column if it fits
if self.X < (rowWidth - self.Gap - self.ColWidths[3]) {