mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-09 15:08:13 +02:00
Simplify is_ascii_control_char
No need to use macros for unsigned char
This commit is contained in:
@@ -78,11 +78,7 @@ send_key_to_child(Window *w, int key, int mods, int action) {
|
||||
|
||||
static inline bool
|
||||
is_ascii_control_char(char c) {
|
||||
#if CHAR_MIN == 0
|
||||
return (c <= 31) || c == 127;
|
||||
#else
|
||||
return (0 <= c && c <= 31) || c == 127;
|
||||
#endif
|
||||
return c == 0 || (1 <= c && c <= 31) || c == 127;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user