Selaa lähdekoodia

Avoid "Marker points into wrong buffer"

* lisp/org-indent.el (org-indent-initialize-buffer): Add a check.  The
bug occurred when trying to capture before any Org buffers were open.
Oleh Krehel 9 vuotta sitten
vanhempi
commit
7dd0d7a567
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      lisp/org-indent.el

+ 2 - 0
lisp/org-indent.el

@@ -237,6 +237,8 @@ a time value."
 	      (catch 'interrupt
 		(and org-indent--initial-marker
 		     (marker-position org-indent--initial-marker)
+		     (equal (marker-buffer org-indent--initial-marker)
+			    buffer)
 		     (org-indent-add-properties org-indent--initial-marker
 						(point-max)
 						delay)