Explorar o código

Fix 9323857

Thanks to Charles Berry for reporting this.
Bastien Guerry %!s(int64=11) %!d(string=hai) anos
pai
achega
f94ed64ffd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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))