use t.Sync when SIGWINCH arrives
1 files changed, 1 insertions(+), 7 deletions(-)

M tscreen.go
M tscreen.go +1 -7
@@ 1008,13 1008,7 @@ func (t *tScreen) mainLoop() {
 			close(t.indoneq)
 			return
 		case <-t.sigwinch:
-			t.Lock()
-			// use Sync
-			t.cx, t.cy = -1, -1
-			t.resize()
-			t.cells.Invalidate()
-			t.draw()
-			t.Unlock()
+			t.Sync()
 			continue
 		case <-t.keytimer.C:
 			// If the timer fired, and the current time