emacs: fix off-by-one error in notmuch-hello column alignment

Expected results for few tests are fixed, the relevant test is
unmarked broken.
This commit is contained in:
Dmitry Kurochkin 2012-03-09 11:34:53 +04:00 committed by David Bremner
parent 818790f7b5
commit 1361dd37bc
4 changed files with 3 additions and 4 deletions

View file

@ -461,7 +461,7 @@ Such a list can be computed with `notmuch-hello-query-counts'."
;; just insert `(- widest (length name))' spaces - the
;; column separator is included in the button if
;; `(equal widest (length name)'.
(widget-insert (make-string (max 1
(widget-insert (make-string (max 0
(- widest (length name)))
? )))))
(setq count (1+ count))

View file

@ -45,7 +45,6 @@ test_emacs "(let ((notmuch-hello-sections
test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-section-counts
test_begin_subtest "Column alignment for tag/queries with long names"
test_subtest_known_broken
tag=a-very-long-tag # length carefully calculated for 80 characters window width
notmuch tag +$tag '*'
test_emacs '(notmuch-hello)

View file

@ -1,4 +1,4 @@
Test: [hide]
52 inbox
52 inbox

View file

@ -1,4 +1,4 @@
Test-with-empty: [hide]
52 inbox
52 inbox