Bastien Guerry пре 11 година
родитељ
комит
a6f8460487
1 измењених фајлова са 1 додато и 1 уклоњено
  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))