Explorar o código

org-element-cache Do not make headline non-robust after changes at :end

* lisp/org-element.el (org-element--cache-for-removal): When changes
involve :end of a headline, allow it to be re-parsed synchronously.
Ihor Radchenko %!s(int64=4) %!d(string=hai) anos
pai
achega
5840e4d61a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/org-element.el

+ 1 - 1
lisp/org-element.el

@@ -6716,7 +6716,7 @@ known element in cache (it may start after END)."
                           ;; The change is not inside headline.  Not
                           ;; updating here.
                           (not (<= beg (org-element-property :begin up)))
-                          (not (>= end (org-element-property :end up)))
+                          (not (> end (org-element-property :end up)))
                           (let ((current (org-with-point-at (org-element-property :begin up)
                                            (org-element-with-disabled-cache
                                                (org-element--current-element (point-max))))))