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
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018
1 changed files with 1 additions and 1 deletions

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