]> git.notmuchmail.org Git - notmuch/commitdiff
notmuch.el: Fix to claim correct number of lines for hidden signature.
authorCarl Worth <cworth@cworth.org>
Wed, 4 Nov 2009 23:19:08 +0000 (15:19 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 4 Nov 2009 23:19:08 +0000 (15:19 -0800)
Previously, it was reporting that all signatures were 0 lines.

notmuch.el

index de44d24737fbb54ec75994fadb22a5227fe4a481..0599af5f0139b76846efa60b27eedabdfc0a269c 100644 (file)
@@ -307,7 +307,7 @@ which this thread was originally shown."
          (let ((overlay (make-overlay beg-sub end)))
            (overlay-put overlay 'invisible 'notmuch-show-signature)
            (overlay-put overlay 'before-string
-                        (concat "[" (number-to-string (count-lines beg-sub (point)))
+                        (concat "[" (number-to-string (count-lines beg-sub end))
                                 "-line signature.]"))
            (goto-char end)))
       (next-line))))