mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-07 09:38:16 +02:00
Speed up is_ignored_char in the common case
This commit is contained in:
1
kitty/unicode-data.c
generated
1
kitty/unicode-data.c
generated
@@ -602,6 +602,7 @@ is_combining_char(char_type code) {
|
||||
bool
|
||||
is_ignored_char(char_type code) {
|
||||
// Control characters and non-characters (2339 codepoints) {{{
|
||||
if (LIKELY(0x20 <= code && code <= 0x7e)) return false;
|
||||
switch(code) {
|
||||
case 0x0 ... 0x1f:
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user