diff --git a/commands_unix.go b/commands_unix.go index 3297461..5dc56cb 100644 --- a/commands_unix.go +++ b/commands_unix.go @@ -15,7 +15,7 @@ import ( // this function. func OnResize(newMsgFunc func() Msg) Cmd { return func() Msg { - sig := make(chan os.Signal) + sig := make(chan os.Signal, 1) signal.Notify(sig, syscall.SIGWINCH) <-sig return newMsgFunc()