aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-04-26 20:51:31 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-04-26 20:51:31 -0700
commit404c6121e5b255850052eea55d88f65c9c439590 (patch)
treeaec9fd5ae50d8f5049da068e706647ed6ff3ca4b /emacs
parentca5ae54cb1aa91dc2c3ba9372d70d6fa080851d8 (diff)
notmuch-hello: Fix a sign error when computing number of padding spaces.
After the previous commit, toggling the visibility of tags could result in notmuch-hello aborting with: Wrong type argument: wholenump, -1 At least, the error only occurred for me when making tags visible. But that may be because my longest tag name is longer than my longest saved-search name.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-hello.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 5d601acf..3a703879 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -174,7 +174,7 @@ diagonal."
:notify #'notmuch-hello-widget-search
:notmuch-search-terms (cdr elem)
(format "%s " (car elem)))
- (insert (make-string (1- (- widest (length (car elem)))) ? )))
+ (insert (make-string (1+ (- widest (length (car elem)))) ? )))
(setq count (1+ count))
(if (eq (% count tags-per-line) 0)
(widget-insert "\n"))))