Browse Source

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 3 years ago
parent
commit
5840e4d61a
1 changed files with 1 additions and 1 deletions
  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
                           ;; The change is not inside headline.  Not
                           ;; updating here.
                           ;; updating here.
                           (not (<= beg (org-element-property :begin up)))
                           (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)
                           (let ((current (org-with-point-at (org-element-property :begin up)
                                            (org-element-with-disabled-cache
                                            (org-element-with-disabled-cache
                                                (org-element--current-element (point-max))))))
                                                (org-element--current-element (point-max))))))