From a0ac2861e9c90c9faff1db56c3f3a5afeaba7298 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Fri, 1 Nov 2024 16:54:45 +0100 Subject: Suffixes are always prefixed with space --- corfu.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/corfu.el b/corfu.el index 976a88e..4b61b2a 100644 --- a/corfu.el +++ b/corfu.el @@ -746,9 +746,10 @@ FRAME is the existing frame." (concat prefix (make-string (- pw (string-width prefix)) ?\s) cand - (make-string (max 1 (- width pw (string-width cand) - (string-width suffix))) - ?\s) + (when (> sw 0) + (make-string (max 0 (- width pw (string-width cand) + (string-width suffix))) + ?\s)) suffix) width))))) -- cgit v1.0