end-of-subtree on ref captures

This commit is contained in:
Jethro Kuan
2021-04-23 14:51:17 +08:00
parent b12bd4ea40
commit 5db30d8fdc

View File

@@ -633,8 +633,9 @@ This function is used solely in Org-roam's capture templates: see
(plist-get org-roam-capture--info :ref))))
(progn
(set-buffer (org-capture-target-buffer (car file-pos)))
(goto-char (cdr file-pos))
(widen))
(goto-char (cadr file-pos))
(widen)
(org-end-of-subtree t t))
(org-roam-capture--goto-location)))
((and (org-roam-node-file org-roam-capture--node)
(org-roam-node-point org-roam-capture--node))