mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
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:
parent
818790f7b5
commit
1361dd37bc
4 changed files with 3 additions and 4 deletions
|
@ -461,7 +461,7 @@ Such a list can be computed with `notmuch-hello-query-counts'."
|
||||||
;; just insert `(- widest (length name))' spaces - the
|
;; just insert `(- widest (length name))' spaces - the
|
||||||
;; column separator is included in the button if
|
;; column separator is included in the button if
|
||||||
;; `(equal widest (length name)'.
|
;; `(equal widest (length name)'.
|
||||||
(widget-insert (make-string (max 1
|
(widget-insert (make-string (max 0
|
||||||
(- widest (length name)))
|
(- widest (length name)))
|
||||||
? )))))
|
? )))))
|
||||||
(setq count (1+ count))
|
(setq count (1+ count))
|
||||||
|
|
|
@ -45,7 +45,6 @@ test_emacs "(let ((notmuch-hello-sections
|
||||||
test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-section-counts
|
test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-section-counts
|
||||||
|
|
||||||
test_begin_subtest "Column alignment for tag/queries with long names"
|
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
|
tag=a-very-long-tag # length carefully calculated for 80 characters window width
|
||||||
notmuch tag +$tag '*'
|
notmuch tag +$tag '*'
|
||||||
test_emacs '(notmuch-hello)
|
test_emacs '(notmuch-hello)
|
||||||
|
|
Loading…
Reference in a new issue