From 1bdd4c6fb3653943cb6941304c2c74354c4af519 Mon Sep 17 00:00:00 2001 From: Bisons Evicted <170766675+bevicted@users.noreply.github.com> Date: Wed, 22 Jan 2025 13:10:20 +0100 Subject: [PATCH] fix: stopwatch.Start() (#707) Signed-off-by: Bence Vidosits Co-authored-by: Bence Vidosits --- stopwatch/stopwatch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stopwatch/stopwatch.go b/stopwatch/stopwatch.go index e5d5f63..891a4c5 100644 --- a/stopwatch/stopwatch.go +++ b/stopwatch/stopwatch.go @@ -75,7 +75,7 @@ func (m Model) Init() tea.Cmd { // Start starts the stopwatch. func (m Model) Start() tea.Cmd { - return tea.Batch(func() tea.Msg { + return tea.Sequence(func() tea.Msg { return StartStopMsg{ID: m.id, running: true} }, tick(m.id, m.tag, m.Interval)) }