From 54dbf5cbe452cc425dadec3a2e07ecfc69e5a4fa Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Thu, 12 Apr 2018 22:56:09 +0300 Subject: [PATCH] use 'redraw' for resize event --- ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui.go b/ui.go index 59ef829..bb18778 100644 --- a/ui.go +++ b/ui.go @@ -829,7 +829,7 @@ func (ui *ui) readEvent(ch chan<- expr, ev termbox.Event) { } } case termbox.EventResize: - ch <- draw + ch <- &callExpr{"redraw", nil, 1} default: // TODO: handle other events }