summaryrefslogtreecommitdiffhomepage
path: root/lib/net
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-04-29 02:52:56 +0100
committerjao <jao@gnu.org>2022-04-29 02:52:56 +0100
commitb2c3ae43cac9c31c24ca82000ba0d6999562a655 (patch)
tree4dfbf6d4f30a33db225b8cfced9cd3d076bd73e6 /lib/net
parent0736f47659c4c57a96a07051390a261391db2e5b (diff)
downloadelibs-b2c3ae43cac9c31c24ca82000ba0d6999562a655.tar.gz
elibs-b2c3ae43cac9c31c24ca82000ba0d6999562a655.tar.bz2
mail nits
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/jao-notmuch.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/net/jao-notmuch.el b/lib/net/jao-notmuch.el
index 72ca85b..53137be 100644
--- a/lib/net/jao-notmuch.el
+++ b/lib/net/jao-notmuch.el
@@ -243,8 +243,11 @@
(notmuch-show-strip-re)
(notmuch-sanitize)))
(c (apply 'jao-notmuch--format-counts q nc))
- (n (max 1 (- (window-width) (string-width s) (string-width c)))))
- (setq-local header-line-format (concat s (make-string n ? ) c)))))))
+ (n (- (window-width) 3 (string-width s) (string-width c)))
+ (s (if (< n 0) (substring s 0 (- n 4)) s))
+ (n (if (< n 0) 5 (1+ n))))
+ (setq-local header-line-format
+ (concat " " s (make-string n ? ) c)))))))
(defun jao-notmuch-tree--find-update-header-line (&rest _args)
(when-let ((mb (if (derived-mode-p 'notmuch-show-mode)