branch: externals/vertico
commit 4d9a6ec085028f31c764efdbc71553c3bbf2c968
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@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