org-agenda.el (org-agenda-finalize): Only mark clocking task when there is one
* org-agenda.el (org-agenda-finalize): Only mark clocking task when there is one.
This commit is contained in:
parent
7fe67bb942
commit
f1191b86e3
|
@ -3538,9 +3538,10 @@ generating a new one."
|
||||||
(org-agenda-dim-blocked-tasks))
|
(org-agenda-dim-blocked-tasks))
|
||||||
;; We need to widen when `org-agenda-finalize' is called from
|
;; We need to widen when `org-agenda-finalize' is called from
|
||||||
;; `org-agenda-change-all-lines' (e.g. in `org-agenda-clock-in')
|
;; `org-agenda-change-all-lines' (e.g. in `org-agenda-clock-in')
|
||||||
|
(when org-clock-current-task
|
||||||
(save-restriction
|
(save-restriction
|
||||||
(widen)
|
(widen)
|
||||||
(org-agenda-mark-clocking-task))
|
(org-agenda-mark-clocking-task)))
|
||||||
(when org-agenda-entry-text-mode
|
(when org-agenda-entry-text-mode
|
||||||
(org-agenda-entry-text-hide)
|
(org-agenda-entry-text-hide)
|
||||||
(org-agenda-entry-text-show))
|
(org-agenda-entry-text-show))
|
||||||
|
|
Loading…
Reference in New Issue