Hi Adam,
Adam Faryna <[email protected]> writes:
> When use org-capture which template that targets file with :prepend
> t, org-capture-kill removes one char too much from target buffer, in
> result next item in target file looses one of asterisk.
Do you still have this issue?
If so, can you test the attached patch against org-capture.el?
If reverts 2f587d4, which may be problematic in your case.
Thanks a lot for reopening and double-checking this issue.
Best,
--
Bastien
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index cd54491..fe308e0 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1114,7 +1114,7 @@ may have been stored before."
(setq level (org-get-valid-level
(if (org-at-heading-p) (org-outline-level) 1)
1))
- (if reversed? (outline-next-heading) (org-end-of-subtree t t)))
+ (if reversed? (outline-next-heading) (org-end-of-subtree t)))
;; Insert as a top-level entry at the beginning of the file.
(reversed?
(goto-char (point-min))