From: Brendan Cully Date: Tue, 10 Apr 2007 17:13:19 +0000 (-0700) Subject: Wrap flowed lines at no more than FLOWED_MAX in replies X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31e39a5c5ddba5276cc8e6f1daf2db7538e0eede;p=neomutt Wrap flowed lines at no more than FLOWED_MAX in replies --- diff --git a/ChangeLog b/ChangeLog index 36af4eb1d..14e642acc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,14 @@ -2007-04-09 09:09 -0700 Brendan Cully (9f6afccedd2f) +2007-04-09 20:36 -0700 Michael Elkins (fbe67329e688) + + * main.c: Exit with a nonzero value if sending a message in batch mode + fails (bug #2709). + + * browser.c: Use mutt_pretty_size() to format '%s' in $folder_format + so it is similar to '%c' in $hdr_format + +2007-04-09 11:32 -0700 Brendan Cully (df7a0ee95618) + + * imap/TODO: Kill off some IMAP TODO items * imap/imap.c: Null out idata->hcache when closing, and remove close from open failure (mx_close will handle it). diff --git a/rfc3676.c b/rfc3676.c index 992bb47a6..1acbac053 100644 --- a/rfc3676.c +++ b/rfc3676.c @@ -69,13 +69,13 @@ static void print_flowed_line (const char *line, STATE *s, int ql) char *pos, *oldpos; int len = mutt_strlen (line); - width = (Wrap ? mutt_term_width (Wrap) : FLOWED_MAX) - ql - 1; - - if (!(s->flags & M_REPLYING)) - --width; - if (width < 0) - width = COLS; - + width = (Wrap ? mutt_term_width (Wrap) : FLOWED_MAX) - 1; + if (s->flags & M_REPLYING && width > FLOWED_MAX) + width = FLOWED_MAX; + /* probably want a quote_width function */ + if (ql + 1 < width) + width -= ql + 1; + if (len == 0) { print_indent (ql, s);