summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/org-capture-config.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/org-capture-config.el b/modules/org-capture-config.el
index be5b6b11..5cd76f0a 100644
--- a/modules/org-capture-config.el
+++ b/modules/org-capture-config.el
@@ -76,7 +76,7 @@ re-scanning large target files after the first successful lookup."
(org-mode))
(org-capture-put-target-region-and-position)
(widen)
- (let* ((key (list (expand-file-name (buffer-file-name)) headline))
+ (let* ((key (cj/org-capture--file-headline-cache-key path headline))
(marker (gethash key cj/org-capture--file-headline-target-cache)))
(if (cj/org-capture--headline-marker-valid-p marker headline)
(goto-char marker)