From 4d809023d356c6094725d6558c2c5757075c7234 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Sat, 14 Apr 2018 08:18:18 -0700 Subject: [PATCH] Code cleanup --- widgets/proc.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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]) {