Explorar o código

org-up-heading-safe: Consider inlinetasks

* lisp/org.el: Consider inlinetasks in the element-cache branch of the
code.

Fixes https://orgmode.org/list/CAP7OBx+G8nF1D7ci=QoduHXgqZRLkPZuDZeu8vEHEsAQ3qn3hw@mail.gmail.com
Ihor Radchenko %!s(int64=3) %!d(string=hai) anos
pai
achega
4d8c6fbf7a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -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)))