Browse Source

Fix 9323857

Thanks to Charles Berry for reporting this.
Bastien Guerry 11 years ago
parent
commit
f94ed64ffd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-src.el

+ 1 - 1
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))