mirror of https://codeberg.org/cage/tinmop/
- improved sorting of URI fuzzy matching.
This commit is contained in:
parent
6fbf4564af
commit
b0eccdc0af
|
@ -213,6 +213,12 @@ list af all possible candidtae for completion."
|
|||
(non-nulls-a (- length-a nulls-a))
|
||||
(non-nulls-b (- length-b nulls-b)))
|
||||
(cond
|
||||
((and (= length-a (length template))
|
||||
(= nulls-a 0))
|
||||
t)
|
||||
((and (= length-b (length template))
|
||||
(= nulls-b 0))
|
||||
nil)
|
||||
((= length-a length-b)
|
||||
(< nulls-a nulls-b))
|
||||
((= non-nulls-a non-nulls-b)
|
||||
|
|
Loading…
Reference in New Issue