[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico 968714ccb8 1/2: Revert "vertico-insert: Insert
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vertico 968714ccb8 1/2: Revert "vertico-insert: Insert single candidate even if not selected (Fix #225)" |
Date: |
Thu, 19 May 2022 13:57:55 -0400 (EDT) |
branch: externals/vertico
commit 968714ccb8ff65f7c06c6a23876aa916ea7ba178
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Revert "vertico-insert: Insert single candidate even if not selected (Fix
#225)"
This reverts commit cc5f5421c6270b8fdd12265ccdaffc3cd297d0d8.
Fix #232
---
vertico.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/vertico.el b/vertico.el
index 526420f502..998a4e083f 100644
--- a/vertico.el
+++ b/vertico.el
@@ -721,9 +721,8 @@ When the prefix argument is 0, the group order is reset."
;; candidate only includes the prefix "~/emacs/master/lisp/", but not the
;; suffix "/calc". Default completion has the same problem when selecting in
;; the *Completions* buffer. See bug#48356.
- (when (or (>= vertico--index 0) (= vertico--total 1))
- (let ((vertico--index (max 0 vertico--index)))
- (insert (prog1 (vertico--candidate) (delete-minibuffer-contents))))))
+ (when (>= vertico--index 0)
+ (insert (prog1 (vertico--candidate) (delete-minibuffer-contents)))))
(defun vertico--candidate (&optional hl)
"Return current candidate string with optional highlighting if HL is
non-nil."