Fix `newline-and-indent' in a list when called on a line being filled

* lisp/org.el (org-return): when filling happens, `newline' can change
  match data, hence modifying the indent column.
This commit is contained in:
Nicolas Goaziou 2011-08-08 18:32:32 +02:00
parent 7d3db13916
commit aab16ffdf4
1 changed files with 1 additions and 1 deletions

View File

@ -17940,7 +17940,7 @@ See the individual commands for more information."
((and (org-in-item-p) indent)
(if (and (org-at-item-p) (>= (point) (match-end 0)))
(progn
(newline)
(save-match-data (newline))
(org-indent-line-to (length (match-string 0))))
(let ((ind (org-get-indentation)))
(newline)