]> granicus.if.org Git - mutt/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)
committerVincent Lefevre <vincent@vinc17.net>
Fri, 31 Mar 2017 15:29:35 +0000 (17:29 +0200)
mbyte.c

diff --git a/mbyte.c b/mbyte.c
index 8d5d075cb653340bbd1de178abc334ba7c26c6d0..0eedaa7ce7241de74cdf7ebf246e1fd11305dd88 100644 (file)
--- a/mbyte.c
+++ b/mbyte.c
@@ -531,6 +531,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;