Skip to content

Commit

Permalink
Unicode 0x202F is a non-break space too (neomutt#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
gahr authored Feb 5, 2017
1 parent 2910dc4 commit 94c120e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94c120e

Please sign in to comment.