summaryrefslogtreecommitdiff
path: root/emacs/notmuch-hello.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/notmuch-hello.el')
-rw-r--r--emacs/notmuch-hello.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 936d546..5d601ac 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -168,14 +168,13 @@ diagonal."
;; (not elem) indicates an empty slot in the matrix.
(when elem
(widget-insert (format "%6s " (notmuch-folder-count (cdr elem))))
- (if (string= (car elem) target)
- (progn
- (setq found-target-pos (point-marker))))
+ (if (string= (format "%s " (car elem)) target)
+ (setq found-target-pos (point-marker)))
(widget-create 'push-button
:notify #'notmuch-hello-widget-search
:notmuch-search-terms (cdr elem)
- (car elem))
- (insert (make-string (- widest (length (car elem))) ? )))
+ (format "%s " (car elem)))
+ (insert (make-string (1- (- widest (length (car elem)))) ? )))
(setq count (1+ count))
(if (eq (% count tags-per-line) 0)
(widget-insert "\n"))))