blob: e996a05d1ea0456814b4f80063413a5185627b68 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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;
|