From 679c36f7ec6417487d84fe13922a25e25df059ca Mon Sep 17 00:00:00 2001 From: David Morgan Date: Tue, 19 Jul 2022 16:04:29 +0100 Subject: Fix vertico-directory functions --- .emacs.d/lisp/init-minibuffer.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.emacs.d/lisp') 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) -- cgit 1.4.1-2-gfad0