mu4e-main: use longest bookmark/mailder count in bookmarks section

This commit is contained in:
Sean Farley 2020-04-24 22:31:03 -07:00 committed by Dirk-Jan C. Binnema
parent a070cca79d
commit 5110b02349
1 changed files with 1 additions and 2 deletions

View File

@ -114,8 +114,7 @@ clicked."
(defun mu4e~main-bookmarks ()
;; TODO: it's a bit uncool to hard-code the "b" shortcut...
(cl-loop with bmks = (mu4e-bookmarks)
with longest = (cl-loop for b in bmks
maximize (length (plist-get b :name)))
with longest = (mu4e~longest-of-maildirs-and-bookmarks)
with queries = (plist-get mu4e~server-props :queries)
for bm in bmks
for key = (string (plist-get bm :key))