branch: externals/consult-denote
commit 481c328755ff10c145f1d816e10cb5a0a505b1c3
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Use expand-file-name instead of concat in consult-denote-file-prompt
    
    I think this is the proper way of constructing a full file system path.
---
 consult-denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/consult-denote.el b/consult-denote.el
index 174ac9949d..62aa522ee2 100644
--- a/consult-denote.el
+++ b/consult-denote.el
@@ -131,7 +131,7 @@ Return the absolute path to the matching file."
                  :require-match (unless no-require-match :require-match)
                  :history 'denote-file-history
                  :prompt prompt))
-         (absolute-file (concat (denote-directory) input)))
+         (absolute-file (expand-file-name input (denote-directory))))
     ;; NOTE: This block is executed when no-require-match is t. It is useful
     ;; for commands such as `denote-open-or-create` or similar.
     (unless (file-exists-p absolute-file)

Reply via email to