Ver código fonte

Fix bug introduced in commit fdb4b54e

Thanks to Leonard Randall for reporting it.
Bastien Guerry 11 anos atrás
pai
commit
fc37d1020a
1 arquivos alterados com 2 adições e 1 exclusões
  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 "^\*+"))