branch: externals/denote
commit 8a617800891e0a46ac75df8db415e186a02768d5
Author: Lucas Quintana <lm...@protonmail.com>
Commit: Lucas Quintana <lm...@protonmail.com>

    Use denote-query--last-files instead of all files when sorting
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 5035b501c9..5dd63d48a4 100644
--- a/denote.el
+++ b/denote.el
@@ -5422,7 +5422,7 @@ When called from Lisp, any argument as accepted by 
`denote-sort-files'
 is allowed."
   (interactive (list (denote-sort-component-prompt)))
   (let ((denote-query-sorting component))
-    (denote-make-links-buffer denote-query--last-query nil
+    (denote-make-links-buffer denote-query--last-query denote-query--last-files
                               (and (eq major-mode 'denote-query-mode) 
(buffer-name))
                               '(display-buffer-same-window))))
 

Reply via email to