imported from http://svnweb.freebsd.org/ports/head/mail/mutt/files/patch-nbsp?revision=301308&view=markup
last_special = special;
}
- if (IsWPrint (wc))
+ if (IsWPrint (wc) || (Charset_is_utf8 && wc == 0x00A0))
{
if (wc == ' ')
space = ch;
+ else if (Charset_is_utf8 && wc == 0x00A0)
+ {
+ /* Convert non-breaking space to normal space. The local variable
+ * `space' is not set here so that the caller of this function won't
+ * attempt to wrap at this character. */
+ wc = ' ';
+ }
t = wcwidth (wc);
if (col + t > wrap_cols)
break;