From 33ed8739977f2e0e7ad48383bbf59070235e8856 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 17 Jan 2018 21:56:30 +0530 Subject: [PATCH] Remove unnecessary extra test for combinig characters There are not combining characters with a non-zero combining class that are not in the marks category. --- 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 66a1feaca..056b9f347 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 || uc_is_general_category_withtable(ch, UC_CATEGORY_MASK_Mc | UC_CATEGORY_MASK_Me | UC_CATEGORY_MASK_Mn); + return uc_is_general_category_withtable(ch, UC_CATEGORY_MASK_Mc | UC_CATEGORY_MASK_Me | UC_CATEGORY_MASK_Mn); }