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

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

[nongnu] elpa/helm 0cae1beaf9 1/2: Fix max-len prefix in symbol completi


From: ELPA Syncer
Subject: [nongnu] elpa/helm 0cae1beaf9 1/2: Fix max-len prefix in symbol completion
Date: Mon, 18 Sep 2023 03:59:42 -0400 (EDT)

branch: elpa/helm
commit 0cae1beaf929c867464dce4de7b4cc29e14ebae4
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>

    Fix max-len prefix in symbol completion
---
 helm-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/helm-mode.el b/helm-mode.el
index 9f9797f5eb..3e3ce18e6a 100644
--- a/helm-mode.el
+++ b/helm-mode.el
@@ -1144,7 +1144,7 @@ is used."
                          (helm-in-buffer-get-longest-candidate)))
            (sep (if (or (null max-len) (zerop max-len))
                     " --"               ; Default separator.
-                  (make-string (- max-len (length comp)) ? )))
+                  (make-string (1+ (- max-len (length comp))) ? )))
            (doc (ignore-errors
                   (helm-get-first-line-documentation sym)))
            (symbol-class (help--symbol-class sym))
@@ -1167,7 +1167,7 @@ is used."
                   (propertize it 'face 'helm-completions-detailed)
                   (propertize
                    ;; (format "%-4s" it) makes spaces inheriting text props.
-                   " " 'display (concat it (make-string (- 4 (length it)) ? 
))))
+                   " " 'display (concat it (make-string (- 5 (length it)) ? 
))))
        ;; Suffix.
        (if doc
            (helm-aand (propertize doc 'face 'helm-completions-detailed)



reply via email to

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