This commit is contained in:
gizak
2015-04-10 09:57:34 -04:00
parent ce9fe5f9c4
commit 9292a5f43d
2 changed files with 23 additions and 8 deletions

View File

@@ -107,14 +107,12 @@ func main() {
if e.Type == ui.EventKey && e.Ch == 'q' {
return
}
if e.Type == ui.EventResize {
ui.Body.Width = ui.TermWidth()
ui.Body.Align()
}
default:
for _, g := range gs {
g.Percent = (g.Percent + 3) % 100
}
ui.Body.Width = ui.TermWidth()
ui.Body.Align()
draw(i)
i++