branch: externals/denote-journal
commit af8c62fa921719f9d01ed383080d0f6c85246679
Merge: 2db19387a0 39728e976a
Author: Protesilaos Stavrou <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #7 from honza/prompt-relative-files
Avoid concating absolute path to denote-directory
---
denote-journal.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/denote-journal.el b/denote-journal.el
index 5b68300e99..caa31e025a 100644
--- a/denote-journal.el
+++ b/denote-journal.el
@@ -213,7 +213,7 @@ Perform the operation relative to the variable
`denote-journal-directory'."
(relative-files (mapcar
#'denote-get-file-name-relative-to-denote-directory files))
(file (if (> (length files) 1)
(completing-read "Select journal entry: "
(denote--completion-table 'file relative-files) nil t)
- (car files))))
+ (car relative-files))))
(concat denote-directory file)))
;;;###autoload