]> granicus.if.org Git - neomutt/commitdiff
Filter other directional markers that corrupt the screen.
authorVincent Lefevre <vincent@vinc17.net>
Fri, 31 Mar 2017 15:29:35 +0000 (17:29 +0200)
committerRichard Russon <rich@flatcap.org>
Sat, 1 Apr 2017 11:28:55 +0000 (12:28 +0100)
mbyte.c

diff --git a/mbyte.c b/mbyte.c
index 478fcdc54129b98a563306b1284efb87031f5ed7..cef56e1f46821ce3399e2f8c924b17f743116141 100644 (file)
--- a/mbyte.c
+++ b/mbyte.c
@@ -530,6 +530,8 @@ int is_display_corrupting_utf8 (wchar_t wc)
       wc == (wchar_t)0x200e ||
       wc == (wchar_t)0x00ad ||   /* soft hyphen: #3848 */
       wc == (wchar_t)0xfeff ||   /* zero width no-break space */
+      (wc >= (wchar_t)0x2066 &&  /* misc directional markers */
+       wc <= (wchar_t)0x2069) ||
       (wc >= (wchar_t)0x202a &&  /* misc directional markers: #3854 */
        wc <= (wchar_t)0x202e))
     return 1;