Skip to content

Commit

Permalink
Skip zero width non-joiner in the pager
Browse files Browse the repository at this point in the history
  • Loading branch information
gahr committed Feb 3, 2023
1 parent cad10ef commit 9671f7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pager/display.c
Expand Up @@ -840,8 +840,8 @@ static int format_line(struct MuttWindow *win, struct Line **lines, int line_num

if (CharsetIsUtf8)
{
/* zero width space, zero width no-break space */
if ((wc == 0x200B) || (wc == 0xFEFF))
/* zero width space, zero with non-joiner, zero width no-break space */
if ((wc == 0x200B) || (wc == 0x200C) || (wc == 0xFEFF))
{
mutt_debug(LL_DEBUG3, "skip zero-width character U+%04X\n", (unsigned short) wc);
continue;
Expand Down

0 comments on commit 9671f7b

Please sign in to comment.