Fix a bug where the initial command wasn't running

This commit is contained in:
Christian Rocha
2020-01-19 00:46:14 -05:00
parent 824703a661
commit a318d24593

2
tea.go
View File

@@ -101,7 +101,7 @@ func (p *Program) Start() error {
}()
// Initialize program
model, _ = p.init()
model, cmd = p.init()
if cmd != nil {
go func() {
cmds <- cmd