summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2012-10-23 22:27:58 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2012-10-23 22:27:58 +0200
commit866d28d48e8e8628a36bb550230f3a185cb4e564 (patch)
tree21385260f8d2185956cab168a278813d1837fb78
parent2608bed9ea54291c160dfacfc5381ae44d456fc7 (diff)
downloadorg-mode-866d28d48e8e8628a36bb550230f3a185cb4e564.tar.gz
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.
-rw-r--r--lisp/ob-exp.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el
index 8d11e45..a2b0f48 100644
--- a/lisp/ob-exp.el
+++ b/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)