summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2014-03-13 09:46:45 +0100
committerBastien Guerry <bzg@altern.org>2014-03-13 09:46:45 +0100
commitf94ed64ffd8941cb919295e6de63ec67b9c00564 (patch)
treee7db9768d5dee7d550449af277b2e320a43ceac8
parentb32306279bebe1f839054b015d9394f908466ad3 (diff)
downloadorg-mode-f94ed64ffd8941cb919295e6de63ec67b9c00564.tar.gz
Fix 9323857
Thanks to Charles Berry for reporting this.
-rw-r--r--lisp/org-src.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-src.el b/lisp/org-src.el
index 6f481e0..584035e 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -740,7 +740,7 @@ with \",*\", \",#+\", \",,*\" and \",,#+\"."
(while (re-search-forward "^" nil t)
(if (not (looking-at "$"))
(replace-match indent)
- (forward-char 1))))
+ (or (eobp) (forward-char 1)))))
(if (org-bound-and-true-p org-edit-src-picture)
(setq total-nindent (+ total-nindent 2)))
(setq code (buffer-string))