diff options
Diffstat (limited to 'src/editor.h')
-rw-r--r-- | src/editor.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/editor.h b/src/editor.h index 445cd82..be79b6c 100644 --- a/src/editor.h +++ b/src/editor.h @@ -21,6 +21,7 @@ #ifndef _RATPOISON_EDITOR_H #define _RATPOISON_EDITOR_H 1 +#include "utf8.h" typedef enum edit_status { @@ -34,9 +35,9 @@ typedef enum edit_status } edit_status; /* UTF-8 handling macros */ -#define RP_IS_UTF8_CHAR(c) (defaults.utf8_locale && (c) & 0xC0) -#define RP_IS_UTF8_START(c) (defaults.utf8_locale && ((c) & 0xC0) == 0xC0) -#define RP_IS_UTF8_CONT(c) (defaults.utf8_locale && ((c) & 0xC0) == 0x80) +#define RP_IS_UTF8_CHAR(c) (utf8_locale && (c) & 0xC0) +#define RP_IS_UTF8_START(c) (utf8_locale && ((c) & 0xC0) == 0xC0) +#define RP_IS_UTF8_CONT(c) (utf8_locale && ((c) & 0xC0) == 0x80) /* Input line functions */ rp_input_line *input_line_new (char *prompt, char *preinput, int history_id, enum completion_styles style, completion_fn fn); |