branch: externals/org
commit 5840e4d61abc9238c87e67e001fc79cef29100e6
Author: Ihor Radchenko <[email protected]>
Commit: Ihor Radchenko <[email protected]>
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.
---
lisp/org-element.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org-element.el b/lisp/org-element.el
index 2e1c108..4ed2408 100644
--- a/lisp/org-element.el
+++ b/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))))))