org-clock.el: Strip bracket links from the heading

* lisp/org-clock.el (org-clock--mode-line-heading): Strip
links from the heading.

This restores the previous behavior before commit 66554298.

Thanks to Matt Lundin for reporting this.
This commit is contained in:
Bastien 2018-03-04 21:21:00 +01:00
parent a1dfd4ff20
commit 74f6ed1eb0
1 changed files with 3 additions and 1 deletions

View File

@ -518,7 +518,9 @@ cannot be translated."
(cond ((functionp org-clock-heading-function)
(funcall org-clock-heading-function))
((org-before-first-heading-p) "???")
(t (org-get-heading t t t t))))
(t (replace-regexp-in-string
org-bracket-link-analytic-regexp "\\5"
(org-no-properties (org-get-heading t t t t))))))
(defun org-clock-menu ()
(interactive)