Parcourir la source

Fix bug introduced in commit fdb4b54e

Thanks to Leonard Randall for reporting it.
Bastien Guerry il y a 11 ans
Parent
commit
fc37d1020a
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      lisp/org.el

+ 2 - 1
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 "^\*+"))