* lisp/minibuffer.el (completion--flex-adjust-metadata): Assume a
candidate missing a score has a score of 0.
res
(lambda (c1 c2)
(or (equal c1 minibuffer-default)
- (> (get-text-property 0 'completion-score c1)
- (get-text-property 0 'completion-score c2)))))))))
+ (let ((s1 (get-text-property 0 'completion-score c1))
+ (s2 (get-text-property 0 'completion-score c2)))
+ (> (or s1 0) (or s2 0))))))))))
`(metadata
(display-sort-function
. ,(compose-flex-sort-fn