[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))
- [elpa] externals/taxy 9f9cfef 34/42: Docs: Reorder sections, (continued)
- [elpa] externals/taxy 9f9cfef 34/42: Docs: Reorder sections, ELPA Syncer, 2021/09/15
- [elpa] externals/taxy 7a63677 08/42: Add: (taxy-define-key-definer), ELPA Syncer, 2021/09/15
- [elpa] externals/taxy 69872e4 06/42: Docs: Update readme, ELPA Syncer, 2021/09/15
- [elpa] externals/taxy d682c37 13/42: Add: (taxy-make-take-function), ELPA Syncer, 2021/09/15
- [elpa] externals/taxy 8d108ef 18/42: WIP: Rename elispy to deffy, ELPA Syncer, 2021/09/15
- [elpa] externals/taxy 468e9b9 01/42: Meta: Add .dir-locals.el, ELPA Syncer, 2021/09/15
- [elpa] externals/taxy 2430282 20/42: Tidy: Indentation, ELPA Syncer, 2021/09/15
- [elpa] externals/taxy b37dd39 17/42: WIP: Tidy, ELPA Syncer, 2021/09/15
- [elpa] externals/taxy 43b8504 36/42: Docs: Update changelog, ELPA Syncer, 2021/09/15
- [elpa] externals/taxy 16d4e50 23/42: Fix/Tidy: (deffy-buffer), ELPA Syncer, 2021/09/15
- [elpa] externals/taxy 45372f6 27/42: Fix: (taxy-magit-section-format-items) Width,
ELPA Syncer <=
- [elpa] externals/taxy 956efdd 37/42: Comment: Update TODO, ELPA Syncer, 2021/09/15
- [elpa] externals/taxy ade9a02 42/42: Merge branch 'wip/magit-section-column-formatting', ELPA Syncer, 2021/09/15
- [elpa] externals/taxy 5227980 40/42: Docs: (taxy-magit-section-define-column-definer) Add docstring, ELPA Syncer, 2021/09/15
- [elpa] externals/taxy 4fd9565 30/42: Fix: (deffy) Bookmarking deffy-files, ELPA Syncer, 2021/09/15
- [elpa] externals/taxy 45cdf29 41/42: Docs: Mention deffy in changelog, ELPA Syncer, 2021/09/15
- [elpa] externals/taxy ac9bc63 16/42: WIP: elispy changes, ELPA Syncer, 2021/09/15
- [elpa] externals/taxy ae7456f 11/42: Add: (taxy-magit-section-define-column-definer) Indentation/align, ELPA Syncer, 2021/09/15
- [elpa] externals/taxy 01b9cac 12/42: Change/Fix: (taxy-magit-section-define-column-definer) Variables, ELPA Syncer, 2021/09/15
- [elpa] externals/taxy 8757b52 10/42: Add: (taxy-magit-section-format-header), ELPA Syncer, 2021/09/15
- [elpa] externals/taxy 5589f50 03/42: Comment: Add note, ELPA Syncer, 2021/09/15