emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/corfu a0ac2861e9 3/8: Suffixes are always prefixed with


From: ELPA Syncer
Subject: [elpa] externals/corfu a0ac2861e9 3/8: Suffixes are always prefixed with space
Date: Fri, 1 Nov 2024 12:58:24 -0400 (EDT)

branch: externals/corfu
commit a0ac2861e9c90c9faff1db56c3f3a5afeaba7298
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    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 976a88e152..4b61b2aea6 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)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]