From 4585163bc262d7e4b86e2cadaebd7bcd0ad16ed3 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Mon, 8 Nov 2021 11:14:43 +0100 Subject: corfu--format-candidates: Ensure that corfu-min-width is respected --- corfu.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/corfu.el b/corfu.el index 4460039..6918757 100644 --- a/corfu.el +++ b/corfu.el @@ -605,10 +605,9 @@ completion began less than that number of seconds ago." (concat prefix (make-string (- pw (string-width prefix)) ?\s) cand - (unless (eq suffix "") - (make-string (+ (- cw (string-width cand)) - (- sw (string-width suffix))) - ?\s)) + (make-string (+ (- cw (string-width cand)) + (- sw (string-width suffix))) + ?\s) suffix) width)) cands))) -- cgit v1.0