org-agenda.el (org-agenda-finalize): Fix clock highlighting.

* org-agenda.el (org-agenda-finalize): Fix clock highlighting.

Thanks to Rares Pop who reported this.
This commit is contained in:
Bastien Guerry 2012-12-11 16:44:03 +01:00
parent e5ea08f01b
commit 1a41eeae1d
1 changed files with 5 additions and 1 deletions

View File

@ -3531,7 +3531,11 @@ generating a new one."
(org-agenda-fontify-priorities))
(when (and org-agenda-dim-blocked-tasks org-blocker-hook)
(org-agenda-dim-blocked-tasks))
(org-agenda-mark-clocking-task)
;; We need to widen when `org-agenda-finalize' is called from
;; `org-agenda-change-all-lines' (e.g. in `org-agenda-clock-in')
(save-restriction
(widen)
(org-agenda-mark-clocking-task))
(when org-agenda-entry-text-mode
(org-agenda-entry-text-hide)
(org-agenda-entry-text-show))