Commit 8e1666f1 authored by Michael Elkins's avatar Michael Elkins

support non-breakable space character in the pager

parent cce676e6
......@@ -1187,10 +1187,17 @@ static int format_line (struct line_t **lineInfo, int n, unsigned char *buf,
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment