Преглед изворни кода

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 пре 3 година
родитељ
комит
4d8c6fbf7a
1 измењених фајлова са 1 додато и 1 уклоњено
  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)))