Browse Source

Fix bug in agenda effort summation if nothing there to display

master
Daniel Borchmann 1 year ago
parent
commit
6ba5fdad61
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
  1. 6
      site-lisp/db-org.el

6
site-lisp/db-org.el

@ -212,7 +212,11 @@ Add this function to `org-agenda-finalize-hook'."
(insert-and-inherit
(concat " ("
(db/org-agenda-calculate-efforts
(next-single-property-change (point) 'day))
(or (next-single-property-change (point) 'day)
;; If nothing is shown on the current day, the previous
;; call may return nil; in that case, don't sum anything
;; by setting the limit to 0
0))
")"))
(forward-line)))))

Loading…
Cancel
Save