Преглед на файлове

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

Ihor Radchenko преди 3 години
родител
ревизия
092e921423
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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