Fix bug in agenda effort summation if nothing there to display
This commit is contained in:
parent
7582c2065e
commit
6ba5fdad61
|
@ -212,7 +212,11 @@ Add this function to `org-agenda-finalize-hook'."
|
||||||
(insert-and-inherit
|
(insert-and-inherit
|
||||||
(concat " ("
|
(concat " ("
|
||||||
(db/org-agenda-calculate-efforts
|
(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)))))
|
(forward-line)))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue