branch: externals/org-contacts
commit 2eb9e86c46fe0fac611c9f79972095cc62cd53e0
Author: stardiviner <[email protected]>
Commit: stardiviner <[email protected]>

    Fix `files` variable nil on command `org-contacts` called interactively.
---
 org-contacts.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/org-contacts.el b/org-contacts.el
index 47880e306a..cf1a3ed883 100644
--- a/org-contacts.el
+++ b/org-contacts.el
@@ -962,7 +962,8 @@ This can be property key checking."
   "Search org-contacts from FILES and jump to contact location."
   (interactive)
   (unless org-contacts--candidates-cache
-    (setq org-contacts--candidates-cache (org-contacts--return-candidates 
files)))
+    (setq org-contacts--candidates-cache
+          (org-contacts--return-candidates (or files org-contacts-files))))
   (if-let* ((files (or files org-contacts-files))
             ((seq-every-p 'file-exists-p files)))
       (when-let* ((candidates org-contacts--candidates-cache)

Reply via email to