summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2013-07-25 18:57:59 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2013-07-25 18:57:59 +0200
commitaf300bd5b0b77086c5b4589f823dcb783e1e7c56 (patch)
tree6b2e891363a9d28336446cd8d29f84c3178a4873
parent1ea4c31eea291b157bcaec7ea09517b486126506 (diff)
downloadorg-mode-af300bd5b0b77086c5b4589f823dcb783e1e7c56.tar.gz
Fix indentation after a list
* lisp/org.el (org-indent-line): Fix indentation after a list.
-rw-r--r--lisp/org.el9
1 files changed, 3 insertions, 6 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 4de2beb..c28f3b9 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -21974,12 +21974,9 @@ hierarchy of headlines by UP levels before marking the subtree."
(beginning-of-line 0))
(cond
;; There was a list item above.
- ((save-excursion
- (and (ignore-errors (goto-char (org-in-item-p)))
- (goto-char
- (org-list-get-top-point (org-list-struct)))))
- (looking-at org-list-full-item-re)
- (setq column (length (match-string 0))))
+ ((ignore-errors (goto-char (org-in-item-p)))
+ (goto-char (org-list-get-top-point (org-list-struct)))
+ (setq column (org-get-indentation)))
;; There was an heading above.
((looking-at "\\*+[ \t]+")
(if (not org-adapt-indentation)