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

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

[nongnu] elpa/popup e5794f8 052/184: Truncate summary when it is too lon


From: ELPA Syncer
Subject: [nongnu] elpa/popup e5794f8 052/184: Truncate summary when it is too long
Date: Wed, 6 Oct 2021 00:01:05 -0400 (EDT)

branch: elpa/popup
commit e5794f80c701d893f961dc1e9ca1f375ffdb104b
Author: Takafumi Arakaki <aka.tkf@gmail.com>
Commit: Takafumi Arakaki <aka.tkf@gmail.com>

    Truncate summary when it is too long
---
 popup.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/popup.el b/popup.el
index 34d3ad8..8204ea9 100644
--- a/popup.el
+++ b/popup.el
@@ -414,7 +414,9 @@ usual."
     (concat margin-left
             string
             (make-string spacing ? )
-            summary
+            (car
+             (popup-substring-by-width
+              summary (max (- popup-width string-width spacing) 0)))
             symbol
             margin-right)))
 



reply via email to

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