summaryrefslogtreecommitdiffstats
path: root/handler.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-11-21 13:58:42 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-11-21 13:58:42 +0000
commit9591301331b7d15407a60d5d74b3f7f64f179a03 (patch)
tree200b4002145ee4fbfe0c531c4db5a7f0de06f228 /handler.c
parentc688a00e320c241b82982eee0deadc067330eaea (diff)
Use $wrapmargin in the format=flowed handler, too.
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/handler.c b/handler.c
index a27a2d20..eb5da333 100644
--- a/handler.c
+++ b/handler.c
@@ -989,6 +989,11 @@ static void text_plain_flowed_handler (BODY *a, STATE *s)
if ((flowed_max = FLOWED_MAX) > COLS - 3)
flowed_max = COLS - 3;
+ if (flowed_max > COLS - WrapMargin)
+ flowed_max = COLS - WrapMargin;
+ if (flowed_max <= 0)
+ flowed_max = COLS;
+
while (bytes > 0 && fgets (line, sizeof (line), s->fpin))
{