Commit dd1e0ea4 authored by Kevin J. McCarthy's avatar Kevin J. McCarthy

Remove conversion of nbsp to space.

Keep the behavior of it not line-breaking, but don't change it to a
space character when displaying.  This is so copy-paste from the pager
will preserve the nbsp, which is semantically important in some
parent b02a9d75
Pipeline #33213340 passed with stages
in 15 minutes and 39 seconds
......@@ -1216,13 +1216,6 @@ static int format_line (struct line_t **lineInfo, int n, unsigned char *buf,
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)
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