]> granicus.if.org Git - neomutt/commitdiff
Unicode 0x202F is a non-break space too (#358)
authorPietro Cerutti <gahr@gahr.ch>
Sun, 5 Feb 2017 22:19:47 +0000 (22:19 +0000)
committerGitHub <noreply@github.com>
Sun, 5 Feb 2017 22:19:47 +0000 (22:19 +0000)
Closes #357

pager.c

diff --git a/pager.c b/pager.c
index 9440ab9bcb72bb87d2c3f6ac7ec88ff360d98fcc..fb8e529a7c07fd449e90f216dc1adfdfac254ac2 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -1287,11 +1287,11 @@ static int format_line (struct line_t **lineInfo, int n, unsigned char *buf,
       last_special = special;
     }
 
-    if (IsWPrint (wc) || (Charset_is_utf8 && wc == 0x00A0))
+    if (IsWPrint (wc) || (Charset_is_utf8 && (wc == 0x00A0 || wc == 0x202F)))
     {
       if (wc == ' ')
        space = ch;
-      else if (Charset_is_utf8 && wc == 0x00A0)
+      else if (Charset_is_utf8 && (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