Unfold hidden subtree after doom-completing-read-org-headings

Affects doom/help* commands, as well as +default/org-notes-headlines,
and others (any command that uses doom-completing-read-org-headings to
search org files).
This commit is contained in:
Henrik Lissner 2019-11-24 19:20:28 -05:00
parent a923f93cab
commit 5b190c9eca
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -174,7 +174,12 @@ selection of all minor-modes, active or not."
(cond ((functionp location) (cond ((functionp location)
(funcall location)) (funcall location))
(location (location
(goto-char location)))) (goto-char location)))
(ignore-errors
(when (outline-invisible-p)
(save-excursion
(outline-previous-visible-heading 1)
(org-show-subtree)))))
(user-error "Aborted")))) (user-error "Aborted"))))
;;;###autoload ;;;###autoload