]> granicus.if.org Git - mutt/commitdiff
Remove conversion of nbsp to space.
authorKevin McCarthy <kevin@8t8.us>
Tue, 16 Oct 2018 23:04:57 +0000 (16:04 -0700)
committerKevin McCarthy <kevin@8t8.us>
Tue, 16 Oct 2018 23:04:57 +0000 (16:04 -0700)
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.

pager.c

diff --git a/pager.c b/pager.c
index ac7196b80d93b9702a53a3c75011f482fd291aa5..584aac3cb041b34772595d4a8c0ce015ade9dd4d 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -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)
        break;