branch: externals/taxy commit 45372f6ece954d153e7c35883da89561a190b8b2 Author: Adam Porter <a...@alphapapa.net> Commit: Adam Porter <a...@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))