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

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

[elpa] externals/vertico 4d9a6ec085 2/2: Fix out of bounds error (Fix #2


From: ELPA Syncer
Subject: [elpa] externals/vertico 4d9a6ec085 2/2: Fix out of bounds error (Fix #294)
Date: Thu, 17 Nov 2022 13:58:26 -0500 (EST)

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

    Fix out of bounds error (Fix #294)
---
 vertico.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vertico.el b/vertico.el
index f765e1ff82..ae5ff07896 100644
--- a/vertico.el
+++ b/vertico.el
@@ -232,9 +232,9 @@ The function is configured by BY, BSIZE, BINDEX, BPRED and 
PRED."
               (sort (aref buckets ,(1- bsize)) #',pred)))))
 
 (vertico--define-sort (history length alpha) 32 (length %) string< 
vertico--length-string<)
-(vertico--define-sort (history alpha) 32 (if (eq % "") 0 (/ (aref % 0) 4)) 
string< string<)
+(vertico--define-sort (history alpha) 32 (if (equal % "") 0 (/ (aref % 0) 4)) 
string< string<)
 (vertico--define-sort (length alpha) 32 (length %) string< 
vertico--length-string<)
-(vertico--define-sort (alpha) 32 (if (eq % "") 0 (/ (aref % 0) 4)) string< 
string<)
+(vertico--define-sort (alpha) 32 (if (equal % "") 0 (/ (aref % 0) 4)) string< 
string<)
 
 (defun vertico--affixate (cands)
   "Annotate CANDS with annotation function."



reply via email to

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