Make sure the denote-file-prompt uses what it got already from denote-has-single-denote-directory-p

This commit is contained in:
Protesilaos Stavrou 2025-10-30 13:36:45 +02:00
parent 252908697a
commit d94e942ac0
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -1564,7 +1564,7 @@ Return the absolute path to the matching file."
(denote--completion-table 'file relative-files)
nil (unless no-require-match :require-match)
nil 'denote-file-history))
(absolute-file (if (denote-has-single-denote-directory-p)
(absolute-file (if single-dir-p
(expand-file-name input default-directory)
input)))
;; NOTE: This block is executed when no-require-match is t. It is useful