fix(org): check org-fold-outline in invisible property

Fix: #7206
This commit is contained in:
StrawberryTea 2023-09-06 07:27:35 -05:00 committed by GitHub
parent 20393c7074
commit 3cafa0223e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View file

@ -168,7 +168,8 @@ selection of all minor-modes, active or not."
(location
(goto-char location)))
(ignore-errors
(when (outline-invisible-p)
(when (memq (get-char-property (point) 'invisible)
'(outline org-fold-outline))
(save-excursion
(outline-previous-visible-heading 1)
(org-show-subtree))))))