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

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

[elpa] externals/taxy 45372f6 27/42: Fix: (taxy-magit-section-format-ite


From: ELPA Syncer
Subject: [elpa] externals/taxy 45372f6 27/42: Fix: (taxy-magit-section-format-items) Width
Date: Wed, 15 Sep 2021 12:57:31 -0400 (EDT)

branch: externals/taxy
commit 45372f6ece954d153e7c35883da89561a190b8b2
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    Fix: (taxy-magit-section-format-items) Width
    
    + Use string-width instead of length.
    + Don't format again, because the value should be a string.
    + Don't add 1 to the column size.  (Not sure why that was done before,
      but it's not needed now.)
---
 taxy-magit-section.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/taxy-magit-section.el b/taxy-magit-section.el
index 9455d7c..ce07245 100644
--- a/taxy-magit-section.el
+++ b/taxy-magit-section.el
@@ -295,7 +295,7 @@ the items' values for each column."
                        (value (funcall fn item depth))
                        (current-column-size (or (map-elt column-sizes 
column-name) 0)))
                   (setf (map-elt column-sizes column-name)
-                        (max current-column-size (1+ (length (format "%s" 
value)))))
+                        (max current-column-size (string-width value)))
                   (setf (map-elt column-aligns column-name)
                         (or (alist-get 'align column-alist)
                             'left))



reply via email to

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