From 804c4fbe19870fad7b7d6288145b4a0573ff2d15 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 15 Jan 2018 11:24:11 +0530 Subject: [PATCH] Recognize characters from the unicode Mark categories as combining characters, even if they do not have a combining class (i.e. are not re-ordered). Fixes #286 --- kitty/unicode-data.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/unicode-data.h b/kitty/unicode-data.h index 4a2f4cb5f..66a1feaca 100644 --- a/kitty/unicode-data.h +++ b/kitty/unicode-data.h @@ -5,7 +5,7 @@ static inline bool is_combining_char(uint32_t ch) { - return uc_combining_class(ch) != UC_CCC_NR; + return uc_combining_class(ch) != UC_CCC_NR || uc_is_general_category_withtable(ch, UC_CATEGORY_MASK_Mc | UC_CATEGORY_MASK_Me | UC_CATEGORY_MASK_Mn); }