about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/lisp/init-minibuffer.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/.emacs.d/lisp/init-minibuffer.el b/.emacs.d/lisp/init-minibuffer.el
index 56b9586..5245ba9 100644
--- a/.emacs.d/lisp/init-minibuffer.el
+++ b/.emacs.d/lisp/init-minibuffer.el
@@ -111,13 +111,13 @@ DEFS is a plist associating completion categories to commands."
     (interactive)
     (if (and (>= vertico--index 0)
              (string-suffix-p "/" (vertico--candidate))
-             (vertico-directory--completing-file-p))
+             (eq 'file (vertico--metadata-get 'category)))
         (vertico-insert)
       (insert "/")))
   (defun vertico-directory-home ()
     (interactive)
     (if (and (string-suffix-p "/" (vertico--candidate))
-             (vertico-directory--completing-file-p))
+             (eq 'file (vertico--metadata-get 'category)))
         (insert "~/")
       (insert "~")))
   (defun read-project (orig &rest args)