gnus-article-treat-body-boundary: fix length computing
authorJulien Danjou <julien@danjou.info>
Sun, 26 Sep 2010 16:02:26 +0000 (18:02 +0200)
committerJulien Danjou <julien@danjou.info>
Sun, 26 Sep 2010 16:02:26 +0000 (18:02 +0200)
Signed-off-by: Julien Danjou <julien@danjou.info>
lisp/ChangeLog
lisp/gnus-art.el

index 2d71d5b..6dfef51 100644 (file)
@@ -1,3 +1,7 @@
+2010-09-26  Julien Danjou  <julien@danjou.info>
+
+       * gnus-art.el (gnus-article-treat-body-boundary): Fix length computing.
+
 2010-09-26  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-picon.el (gnus-picon-inhibit-top-level-domains): New variable.
index ad6ccb2..5662bfa 100644 (file)
@@ -2301,9 +2301,9 @@ long lines if and only if arg is positive."
        (insert "X-Boundary: ")
        (gnus-add-text-properties start (point) '(invisible t intangible t))
        (insert (let (str)
-                 (while (>= (1- (window-width)) (length str))
+                 (while (>= (window-width) (length str))
                    (setq str (concat str gnus-body-boundary-delimiter)))
-                 (substring str 0 (1- (window-width))))
+                 (substring str 0 (window-width)))
                "\n")
        (gnus-put-text-property start (point) 'gnus-decoration 'header)))))