lisp/org.el: Fix bug when unfolding a subtree

* lisp/org.el (org-cycle-internal-local): Use 'tree instead of
'canonical when setting the visibility of the subtree to unfold.

Reported-by: Yasushi SHOJI <yasushi.shoji@gmail.com>
Link: https://orgmode.org/list/CAELBRWLakDCbawmMdS5Qi0qh5FC2ixF82xNfCg75wMjmze6pbA@mail.gmail.com/
This commit is contained in:
Bastien 2021-05-02 07:09:55 +02:00
parent eedbe286ef
commit 5021bada95
1 changed files with 1 additions and 1 deletions

View File

@ -6489,7 +6489,7 @@ Use `\\[org-edit-special]' to edit table.el tables"))
(org-list-set-item-visibility (point-at-bol) struct 'children)
(org-show-entry)
(org-with-limited-levels (org-show-children))
(org-show-set-visibility 'canonical)
(org-show-set-visibility 'tree)
;; Fold every list in subtree to top-level items.
(when (eq org-cycle-include-plain-lists 'integrate)
(save-excursion