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

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

[elpa] externals/vertico 527c53d: vertico--arrange-candidates: Remove un


From: ELPA Syncer
Subject: [elpa] externals/vertico 527c53d: vertico--arrange-candidates: Remove unnecessary variable
Date: Thu, 15 Jul 2021 08:57:17 -0400 (EDT)

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

    vertico--arrange-candidates: Remove unnecessary variable
---
 vertico.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/vertico.el b/vertico.el
index e4f2626..bcb1c6d 100644
--- a/vertico.el
+++ b/vertico.el
@@ -460,14 +460,14 @@ The function is configured by BY, BSIZE, BINDEX, BPRED 
and PRED."
   "Arrange candidates given the current METADATA."
   (let ((curr-line 0) (lines))
     ;; Compute group titles
-    (let* ((start (min (max 0 (- vertico--index (/ vertico-count 2) (1- (mod 
vertico-count 2))))
+    (let* ((index (min (max 0 (- vertico--index (/ vertico-count 2) (1- (mod 
vertico-count 2))))
                        (max 0 (- vertico--total vertico-count))))
-           (index start) (title)
+           (title)
            (group-fun (completion-metadata-get metadata 'group-function))
            (group-format (and group-fun vertico-group-format (concat 
vertico-group-format "\n")))
            (candidates
-            (thread-last (seq-subseq vertico--candidates start
-                                     (min (+ start vertico-count) 
vertico--total))
+            (thread-last (seq-subseq vertico--candidates index
+                                     (min (+ index vertico-count) 
vertico--total))
               (funcall vertico--highlight-function)
               (vertico--affixate metadata))))
       (dolist (cand candidates)



reply via email to

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