Paste subtree above target headline if point is at bol

* org.el (org-paste-subtree): Paste subtree above target headline if
point is at bol.

Capture and refile depend on this buggy behavior of org-past-subtree.
This commit is contained in:
David Maus 2011-08-13 09:19:19 +02:00
parent 1bbfec57af
commit e5199c4095
1 changed files with 1 additions and 1 deletions

View File

@ -7568,7 +7568,7 @@ the inserted text when done."
(if force-level
(delete-region (point-at-bol) (point)))
;; Paste
(beginning-of-line (if (org-at-heading-p) 2 1))
(beginning-of-line (if (bolp) 2 1))
(unless for-yank (org-back-over-empty-lines))
(setq beg (point))
(and (fboundp 'org-id-paste-tracker) (org-id-paste-tracker txt))