branch: externals/org
commit 092e921423f02d48778a0c5d298a211388af8090
Author: Ihor Radchenko <[email protected]>
Commit: Ihor Radchenko <[email protected]>

    org-element-cache-map: Fix when start is nil after buffer modification
---
 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 1c37f79..2106f56 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -7507,7 +7507,7 @@ the cache."
                                          (eq cache-size (cache-size)))
                               ;; START may no longer be valid, update
                               ;; it to beginning of real element.
-                              (goto-char start)
+                              (when start (goto-char start))
                               ;; Upon modification, START may lay
                               ;; inside an element.  We want to move
                               ;; it to real beginning then despite

Reply via email to