From fc4e2de02dd7debb530ecac81a65b7e26cdf1665 Mon Sep 17 00:00:00 2001 From: jjanzen Date: Mon, 10 Mar 2025 14:53:56 -0500 Subject: [PATCH] fix bug where timer doesn't reset correctly --- pomodoro-mode.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pomodoro-mode.el b/pomodoro-mode.el index 2574729..b6e185a 100644 --- a/pomodoro-mode.el +++ b/pomodoro-mode.el @@ -28,13 +28,13 @@ :group 'pomodoro) ;;;###autoload -(defcustom pomodoro-work-time (* 25 60) +(defcustom pomodoro-work-time (* 25 1) "The length of a pomodoro work session in seconds" :type '(integer) :group 'pomodoro) ;;;###autoload -(defcustom pomodoro-break-time (* 5 60) +(defcustom pomodoro-break-time (* 5 1) "The length of a pomodoro break session in seconds" :type '(integer) :group 'pomodoro) @@ -86,8 +86,8 @@ (setq symbol "") (setq max-time 0))) (if (>= delta max-time) - (setq delta max-time) - (setq delta (- max-time delta))) + (setq delta max-time)) + (setq delta (- max-time delta)) ;; Get the time in minutes and seconds (setq minutes (/ delta 60))