diff options
author | David Edmondson <dme@dme.org> | 2010-11-09 18:15:31 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-11-11 16:50:22 -0800 |
commit | 1b2ea703e758843a515d33cc78fdfec4f758ce6c (patch) | |
tree | 50808f73e119612545a0cedf8bf414b18e85f48c /emacs/notmuch-wash.el | |
parent | d5e4ff0580c9635740fe745f766ec9d10a94809e (diff) |
emacs: Correctly count the number of lines in a signature.
Diffstat (limited to 'emacs/notmuch-wash.el')
-rw-r--r-- | emacs/notmuch-wash.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-wash.el b/emacs/notmuch-wash.el index 26a3f881..cfcfb21c 100644 --- a/emacs/notmuch-wash.el +++ b/emacs/notmuch-wash.el @@ -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))) |