summaryrefslogtreecommitdiffstats
path: root/handler.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-05-11 15:09:55 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-05-11 15:09:55 +0000
commit0582308a41d0319959ce6fc1a7dea28c745ca9ec (patch)
tree674a0ba9508920839a6bf1376935602ba9baa36b /handler.c
parent1fa07db0a9b577be4e0b03ebd9865f631b35c98f (diff)
More fixes.
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/handler.c b/handler.c
index 6f86a19b..2e7d59eb 100644
--- a/handler.c
+++ b/handler.c
@@ -924,6 +924,8 @@ static void text_plain_flowed_handler (BODY *a, STATE *s)
int flowed_max;
int bytes = a->length;
+
+ int actually_wrap = 0;
char *cont = NULL;
char *tail = NULL;
@@ -967,6 +969,7 @@ static void text_plain_flowed_handler (BODY *a, STATE *s)
l = mutt_strlen (cont);
if (quoted + add + col + l > flowed_max)
{
+ actually_wrap = 1;
if ((max = flowed_max - quoted - add - col)
> l)
max = l;
@@ -1017,7 +1020,7 @@ static void text_plain_flowed_handler (BODY *a, STATE *s)
col++;
}
- if (!soft)
+ if (!soft || !actually_wrap)
{
state_putc ('\n', s);
col = 0;