]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: fix off-by-one error in notmuch-hello column alignment
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Fri, 9 Mar 2012 07:34:53 +0000 (11:34 +0400)
committerDavid Bremner <bremner@debian.org>
Thu, 5 Apr 2012 10:40:12 +0000 (07:40 -0300)
Expected results for few tests are fixed, the relevant test is
unmarked broken.

emacs/notmuch-hello.el
test/emacs-hello
test/emacs.expected-output/notmuch-hello-new-section
test/emacs.expected-output/notmuch-hello-section-with-empty

index e9caade5d4c1e6ad5fe2f6d76c63182d527c9212..28f39f19a8cb4724642e51b522d2b64282139510 100644 (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))
index 9e5d04544a2161f6e58ece5ac726a2991617f74f..be66ba4c781efecad2bfec55e6632710fcf488de 100755 (executable)
@@ -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)
index c64d7128bf583330af4002416370bf75548d368e..6a339aae3a381bb11b5063f00b743b5773b58bab 100644 (file)
@@ -1,4 +1,4 @@
 Test: [hide]
 
-         52 inbox  
+         52 inbox 
 
index 8209feda798125393d3cbf3b03b384f4fa336807..dc2568def7ddd1d3197b5802544deeeb0797b44d 100644 (file)
@@ -1,4 +1,4 @@
 Test-with-empty: [hide]
 
-         52 inbox  
+         52 inbox