summaryrefslogtreecommitdiff
path: root/lisp/mail/flow-fill.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mail/flow-fill.el')
-rw-r--r--lisp/mail/flow-fill.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mail/flow-fill.el b/lisp/mail/flow-fill.el
index f4b55031194..b357b3e2563 100644
--- a/lisp/mail/flow-fill.el
+++ b/lisp/mail/flow-fill.el
@@ -157,7 +157,8 @@ lines."
;; Hack: Don't do the flowing on the signature line.
(when (and (not (looking-at "-- $"))
(eq (char-before (line-end-position)) ?\s))
- (while (eq (char-before (line-end-position)) ?\s)
+ (while (and (not (eobp))
+ (eq (char-before (line-end-position)) ?\s))
(end-of-line)
(when delete-space
(delete-char -1))