use 'redraw' for resize event

This commit is contained in:
Gokcehan 2018-04-12 22:56:09 +03:00
parent c1fc79b6ae
commit 54dbf5cbe4

2
ui.go
View File

@ -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
}