branch: externals/denote
commit d94e942ac0fd1cdf53c60180054ea537d2edc6fc
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Make sure the denote-file-prompt uses what it got already from 
denote-has-single-denote-directory-p
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index d155a5bd43..4569424424 100644
--- a/denote.el
+++ b/denote.el
@@ -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

Reply via email to