Skip to content

Commit 9edf69c

Browse files
committed
fix: handle setWindowTitleMsg and windowSizeMsg in eventLoop
Fixes: ffa0502 (Merge pull request #848 from wolfmagnate/fix-nested-cmd-order)
1 parent 31c0299 commit 9edf69c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tea.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,12 @@ func (p *Program) eventLoop(model Model, cmds chan Cmd) (Model, error) {
477477
case sequenceMsg:
478478
go p.execSequenceMsg(msg)
479479
continue
480+
481+
case setWindowTitleMsg:
482+
p.SetWindowTitle(string(msg))
483+
484+
case windowSizeMsg:
485+
go p.checkResize()
480486
}
481487

482488
// Process internal messages for the renderer.

0 commit comments

Comments
 (0)