From 4f8927d0d3f6df8d7f10074a218559af24f0a7fa Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Fri, 31 Mar 2023 12:56:12 -0500 Subject: [PATCH] Click _after_ break --- cmd/break.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/break.go b/cmd/break.go index e6013d7..6c87141 100644 --- a/cmd/break.go +++ b/cmd/break.go @@ -16,8 +16,7 @@ var breakCmd = &cobra.Command{ Use: "break", Short: "Start a break", Run: func(cmd *cobra.Command, args []string) { - length := viper.GetDuration("breaklength") - viper.Set("lastbreak", time.Now().Add(length)) + viper.Set("lastbreak", time.Now()) viper.WriteConfig() }, }