From a97d7d3d47eb8114e2847f643398991677030a55 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 23 Feb 2026 15:56:08 +0900 Subject: chore: use modern api; go mod tidy --- cmd/timer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/timer.go') diff --git a/cmd/timer.go b/cmd/timer.go index 6058839..5f17f3f 100644 --- a/cmd/timer.go +++ b/cmd/timer.go @@ -58,10 +58,10 @@ func cmdTimer(cmd *cobra.Command, args []string) { startTime := time.Now() - drawTimer(scr, (timerTime - time.Now().Sub(startTime)).Round(time.Second), term.BgStyle, term.FgStyle) + drawTimer(scr, (timerTime - time.Since(startTime)).Round(time.Second), term.BgStyle, term.FgStyle) scr.OnResize(func() bool { - drawTimer(scr, (timerTime - time.Now().Sub(startTime)).Round(time.Second), term.BgStyle, term.FgStyle) + drawTimer(scr, (timerTime - time.Since(startTime)).Round(time.Second), term.BgStyle, term.FgStyle) return false }) go scr.DoEventLoop() -- cgit v1.3-1-g0d28