diff --git a/lisp/org.el b/lisp/org.el index 802dc208c..7f0d79ad2 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -12858,7 +12858,7 @@ This function is run automatically after each state change to a DONE state." (org-log-done nil) (org-todo-log-states nil) re type n what ts time to-state) - (when (and repeat (not (zerop (string-to-number repeat)))) + (when (and repeat (not (zerop (string-to-number (substring repeat 1))))) (if (eq org-log-repeat t) (setq org-log-repeat 'state)) (setq to-state (or (org-entry-get nil "REPEAT_TO_STATE") org-todo-repeat-to-state))