emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vertico 9a302f6 1/4: Rename variable


From: ELPA Syncer
Subject: [elpa] externals/vertico 9a302f6 1/4: Rename variable
Date: Fri, 18 Jun 2021 09:57:20 -0400 (EDT)

branch: externals/vertico
commit 9a302f6b96013b49f65af53ef77807dd9f7e0012
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Rename variable
---
 vertico.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/vertico.el b/vertico.el
index dd546fd..ad0cc5d 100644
--- a/vertico.el
+++ b/vertico.el
@@ -135,8 +135,8 @@
 (defvar-local vertico--total 0
   "Length of the candidate list `vertico--candidates'.")
 
-(defvar-local vertico--keep nil
-  "Keep current candidate index `vertico--index'.")
+(defvar-local vertico--lock-candidate nil
+  "Lock-in current candidate.")
 
 (defvar-local vertico--default-missing nil
   "Default candidate is missing from candidates list.")
@@ -299,7 +299,7 @@
           ;; Default value is missing from collection
           (and def (= pt 0) (not (member def all)))
           ;; Find position of old candidate in the new list.
-          (when vertico--keep
+          (when vertico--lock-candidate
             (if (< vertico--index 0)
                 vertico--index
               (seq-position all (nth vertico--index vertico--candidates))))
@@ -354,7 +354,7 @@
      ;; * For matching content, as long as the full content after the boundary 
is empty,
      ;;   including content after point.
      (unless vertico--index
-       (setq vertico--keep nil
+       (setq vertico--lock-candidate nil
              vertico--index
              (if (or (not vertico--candidates)
                      vertico--default-missing
@@ -508,7 +508,7 @@
 
 (defun vertico--goto (index)
   "Go to candidate with INDEX."
-  (setq vertico--keep t
+  (setq vertico--lock-candidate t
         vertico--index
         (max (if (or (vertico--allow-prompt-selection-p) (not 
vertico--candidates)) -1 0)
              (min index (1- vertico--total)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]