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.
This commit is contained in:
Nicolas Goaziou 2012-10-23 22:27:58 +02:00
parent 2608bed9ea
commit 866d28d48e
1 changed files with 1 additions and 1 deletions

View File

@ -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)