Explorar el Código

org-element-cache-map: Fix when start is nil after buffer modification

Ihor Radchenko hace 3 años
padre
commit
092e921423
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lisp/org-element.el

+ 1 - 1
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