From fc37d1020a928b69ecb02592d521faf84d0051ff Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Fri, 25 Apr 2014 09:27:12 +0200 Subject: [PATCH] Fix bug introduced in commit fdb4b54e Thanks to Leonard Randall for reporting it. --- lisp/org.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 2a451ed54..e4d6a2570 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7650,7 +7650,8 @@ command." pos hide-previous previous-pos) ;; If we insert after content, move there and clean up whitespace - (when (and respect-content (not (org-on-heading-p))) + (when (and respect-content + (not (org-looking-at-p org-outline-regexp-bol))) (org-end-of-subtree nil t) (skip-chars-backward " \r\n") (and (not (looking-back "^\*+")) -- 2.11.4.GIT