From d6f10e989d96edec9a414466a588275ea620b7a6 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Sun, 7 Nov 2021 20:24:44 +0100 Subject: corfu--affixate: Normalize --- corfu.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/corfu.el b/corfu.el index 6db4a03..74b99e1 100644 --- a/corfu.el +++ b/corfu.el @@ -582,7 +582,7 @@ completion began less than that number of seconds ago." suffix (propertize suffix 'face 'corfu-annotations))))) candidates) - candidates))) + (mapcar (lambda (cand) (list cand "" "")) candidates)))) ;; XXX Do not use `completion-metadata-get' in order to avoid Marginalia. ;; The Marginalia annotators are way to heavy for the Corfu popup! @@ -594,9 +594,7 @@ completion began less than that number of seconds ago." "Format annotated CAND string." (replace-regexp-in-string "[ \t]*\n[ \t]*" " " - (if (consp cand) - (concat (cadr cand) (car cand) (caddr cand)) - cand))) + (concat (cadr cand) (car cand) (caddr cand)))) (defun corfu--show-candidates (beg end str) "Update display given BEG, END and STR." -- cgit v1.0