1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00
freebsd-ports/mail/mutt/files/patch-nbsp
Chris Rees bb040dde3e Move mail/mutt to mail/mutt14
Move mail/mutt-lite to mail/mutt14-lite

Move mail/mutt-devel to mail/mutt

Moving mail/mutt-devel-lite to mail/mutt-lite will follow next to avoid
breaking the cvs exporter

PR:		ports/169546
Suggested by:	obrien
Approved by:	maintainer
2012-07-22 09:15:04 +00:00

23 lines
574 B
Plaintext

diff --git a/pager.c b/pager.c
--- pager.c
+++ pager.c
@@ -1187,10 +1187,17 @@
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;