Browse Source

ob-exp: Fix small bug

* lisp/ob-exp.el (org-export-blocks-preprocess): Pos can sometimes be
  set to a value greater than start, because of indentation, and lead
  to a search bound error.
Nicolas Goaziou 5 years ago
parent
commit
866d28d48e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ob-exp.el

+ 1 - 1
lisp/ob-exp.el

@@ -291,7 +291,7 @@ this template."
 					   (indent-line-to ind))
 			 ;; Indent everything.
 			 (indent-code-rigidly match-start (point) ind)))))
-	      (setq pos (point))
+	      (setq pos (line-beginning-position))
               ;; Cleanup markers.
 	      (set-marker match-start nil)
 	      (set-marker begin nil)