From 268e5e6c1371fef2b97ae5d8537fee7aa4b6c3d9 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sat, 14 Jul 2018 11:26:32 -0400 Subject: [PATCH] handle resize Signed-off-by: Jess Frazelle --- main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.go b/main.go index 91c28e7..9eefc5c 100644 --- a/main.go +++ b/main.go @@ -139,10 +139,7 @@ func main() { // Handle resize termui.Handle("/sys/wnd/resize", func(e termui.Event) { - termui.Body.Width = termui.TermWidth() - termui.Body.Align() - termui.Clear() - termui.Render(termui.Body) + doWidgets() }) // Update on an interval