summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2010-11-06 16:43:12 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2010-12-06 19:13:09 +0100
commit5bbce0473da8e56e9399a640557f693e83390e39 (patch)
treec70f157b0e9b6a2342e29262a873ae0a3024d071
parent85591ffcbfeb566045f41a801d7ad3632b55c653 (diff)
downloadorg-mode-5bbce0473da8e56e9399a640557f693e83390e39.tar.gz
Fix indentation after an inline task with drawers
* org.el (org-indent-line-function): ignore drawers inside inline tasks if the line to indent isn't inside an inline task itself.
-rw-r--r--lisp/org.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 380f1f8..e006c36 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -18674,7 +18674,8 @@ If point is in an inline task, mark that task instead."
(and (org-in-item-p) (goto-char (org-list-top-point)))
(and (not inline-task-p)
(featurep 'org-inlinetask)
- (org-inlinetask-in-task-p))))
+ (org-inlinetask-in-task-p)
+ (or (org-inlinetask-goto-beginning) t))))
(beginning-of-line 0))
(cond
;; There was an heading above.