From: Kevin McCarthy Date: Tue, 16 Oct 2018 23:04:57 +0000 (-0700) Subject: Remove conversion of nbsp to space X-Git-Tag: 2019-10-25~485^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a7b44c5e31c7da3ab0967eeef8d61e7f196e729;p=neomutt 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 locales. --- diff --git a/pager.c b/pager.c index 69dd9ea44..f24f6874a 100644 --- a/pager.c +++ b/pager.c @@ -1432,14 +1432,6 @@ static int format_line(struct Line **line_info, int n, unsigned char *buf, int f { space = ch; } - /* no-break space, narrow no-break space */ - else if (CharsetIsUtf8 && (wc == 0x00A0 || wc == 0x202F)) - { - /* 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;