]> granicus.if.org Git - mutt/commitdiff
f=f: flush buffer contents (if any) after reading input
authorRocco Rutte <pdmef@gmx.net>
Tue, 8 May 2007 19:54:42 +0000 (12:54 -0700)
committerRocco Rutte <pdmef@gmx.net>
Tue, 8 May 2007 19:54:42 +0000 (12:54 -0700)
Otherwise mutt maybe won't show the last line if it's supposed
to continue.

rfc3676.c

index 1933b494a3340cec72efc2bdec7c02183ef4ddec..ebd9543f53e57d53cef24f4ca3b9a10dfd120771 100644 (file)
--- a/rfc3676.c
+++ b/rfc3676.c
@@ -242,6 +242,13 @@ int rfc3676_handler (BODY * a, STATE * s)
     }
 
   }
+
+  if (*curline)
+  {
+    dprint (2, (debugfile, "f=f: still content buffered af EOF, flushing at ql=%d\n", quotelevel));
+    print_flowed_line (curline, s, quotelevel);
+  }
+
   FREE(&curline);
   return (0);
 }