mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 06:54:58 +02:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user