Skip to content

Commit

Permalink
org-up-heading-safe: Consider inlinetasks
Browse files Browse the repository at this point in the history
* lisp/org.el: Consider inlinetasks in the element-cache branch of the
code.

Fixes https://orgmode.org/list/CAP7OBx+G8nF1D7ci=QoduHXgqZRLkPZuDZeu8vEHEsAQ3qn3hw@mail.gmail.com
  • Loading branch information
yantar92 committed Sep 13, 2022
1 parent 0432f4f commit 4d8c6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/org.el
Original file line number Diff line number Diff line change
Expand Up @@ -20176,7 +20176,7 @@ make a significant difference in outlines with very many siblings."
(let ((element (and (org-element--cache-active-p)
(org-element-at-point nil t))))
(if element
(let* ((current-heading (org-element-lineage element '(headline) 'with-self))
(let* ((current-heading (org-element-lineage element '(headline inlinetask) 'with-self))
(parent (org-element-lineage current-heading '(headline))))
(if (and parent
(<= (point-min) (org-element-property :begin parent)))
Expand Down

0 comments on commit 4d8c6fb

Please sign in to comment.