emacs: Correctly count the number of lines in a signature.
authorDavid Edmondson <dme@dme.org>
Tue, 9 Nov 2010 18:15:31 +0000 (18:15 +0000)
committerCarl Worth <cworth@cworth.org>
Fri, 12 Nov 2010 00:50:22 +0000 (16:50 -0800)
emacs/notmuch-wash.el

index 26a3f881163f8c6e4b50604faea685b54e66bc93..cfcfb21c01d4982ad2482ea3133708cfd6af40b2 100644 (file)
@@ -145,7 +145,7 @@ is what to put on the button."
           (re-search-forward notmuch-wash-signature-regexp nil t))
       (let* ((sig-start (match-beginning 0))
             (sig-end (match-end 0))
-            (sig-lines (1- (count-lines sig-start (point-max)))))
+            (sig-lines (count-lines sig-start (point-max))))
        (if (<= sig-lines notmuch-wash-signature-lines-max)
            (let ((sig-start-marker (make-marker))
                  (sig-end-marker (make-marker)))