From 9f922065baeff5e5686da4f687481334426a94e1 Mon Sep 17 00:00:00 2001 From: Sean Farley Date: Thu, 28 Sep 2023 21:06:42 -0700 Subject: [PATCH] refactor(mu4e): prepare `+mu4e-normalised-icon' for extra padding This is non-functional change to use `format' instead of `concat'. It will make the next patch easier to read. --- modules/email/mu4e/autoload/email.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/email/mu4e/autoload/email.el b/modules/email/mu4e/autoload/email.el index ff48f57c9..c9c65b586 100644 --- a/modules/email/mu4e/autoload/email.el +++ b/modules/email/mu4e/autoload/email.el @@ -123,8 +123,10 @@ will also be the width of all other printable characters." (apply icon-set `(,name :height ,height :v-adjust ,v-adjust)))) (icon-width (+mu4e--get-string-width icon)) (space-width (+mu4e--get-string-width " ")) - (space-factor (- 2 (/ (float icon-width) space-width)))) - (concat (propertize " " 'display `(space . (:width ,space-factor))) icon))) + (space-factor (- 2 (/ (float icon-width) space-width))) + ;; always pad the left + (space-left (propertize " " 'display `(space . (:width ,space-factor))))) + (format "%s%s" space-left icon))) ;; Set up all the fancy icons ;;;###autoload