summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lefevre <vincent@vinc17.net>2017-03-31 17:29:35 +0200
committerVincent Lefevre <vincent@vinc17.net>2017-03-31 17:29:35 +0200
commita6d0c40161fb52b3d8415cb838f8bd768be97481 (patch)
treeaa9d0600a5590b68b405f7305e9fc03e0acd2b7e
parent5a06b9eaa990079b7ec6438c165cc5424be22482 (diff)
Filter other directional markers that corrupt the screen.
-rw-r--r--mbyte.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mbyte.c b/mbyte.c
index 8d5d075c..0eedaa7c 100644
--- 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;