]> granicus.if.org Git - neomutt/commitdiff
fix format=flowed text when the sidebar is enabled
authorRichard Russon <rich@flatcap.org>
Tue, 17 May 2016 02:13:50 +0000 (03:13 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 21 May 2016 12:22:05 +0000 (13:22 +0100)
fixes #26

rfc3676.c

index dd67f741e73fa1a3aae91250aa335edf993e0495..5224bdac7b3841e7e2667772b488eff02dcf34ea 100644 (file)
--- a/rfc3676.c
+++ b/rfc3676.c
@@ -149,6 +149,9 @@ static void flush_par (STATE *s, flowed_state_t *fst)
 static int quote_width (STATE *s, int ql)
 {
   int width = mutt_term_width (ReflowWrap);
+#ifdef USE_SIDEBAR
+  width -= SidebarWidth;
+#endif
   if (option(OPTTEXTFLOWED) && (s->flags & M_REPLYING))
   {
     /* When replying, force a wrap at FLOWED_MAX to comply with RFC3676