]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - lib/readline/chardefs.h
Imported from ../bash-2.05.tar.gz.
[thirdparty/bash.git] / lib / readline / chardefs.h
index 664c1e43368615080188589a33cddd1f4575541b..aec704d626537bd641bf56e0981cffac90a41b8f 100644 (file)
@@ -51,7 +51,7 @@
 #define meta_character_bit 0x080           /* x0000000, must be on. */
 #define largest_char 255                   /* Largest character value. */
 
-#define CTRL_CHAR(c) ((c) < control_character_threshold && (c) >= 0)
+#define CTRL_CHAR(c) ((c) < control_character_threshold && (((c) & 0x80) == 0))
 #define META_CHAR(c) ((c) > meta_character_threshold && (c) <= largest_char)
 
 #define CTRL(c) ((c) & control_character_mask)