]> granicus.if.org Git - neomutt/commitdiff
Use $wrapmargin in the format=flowed handler, too.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 21 Nov 2001 13:58:42 +0000 (13:58 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 21 Nov 2001 13:58:42 +0000 (13:58 +0000)
handler.c

index a27a2d20d95936329c25c183d5cae2949ead246b..eb5da333a90c2c724fbce71d88907216b3d1a152 100644 (file)
--- 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))
   {