From e366ca8dbfb3d38e4bcbfa02965d6736a7e6bdca Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 7 Nov 2005 09:37:34 +0000 Subject: users/9638: tweaks for FCEDIT etc. 21986: rewrite completion suffixes for wide characters --- Src/Zle/zle.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'Src/Zle/zle.h') diff --git a/Src/Zle/zle.h b/Src/Zle/zle.h index 6c960e595..59e790542 100644 --- a/Src/Zle/zle.h +++ b/Src/Zle/zle.h @@ -248,7 +248,12 @@ typedef void (*KeyScanFunc) _((char *, Thingy, char *, void *)); /* Standard type of suffix removal. */ -#define removesuffix() iremovesuffix(256, 0) +#ifdef MULTIBYTE_SUPPORT +#define NO_INSERT_CHAR WEOF +#else +#define NO_INSERT_CHAR 256 +#endif +#define removesuffix() iremovesuffix(NO_INSERT_CHAR, 0) /* * Cut/kill buffer type. The buffer itself is purely binary data, not @@ -326,6 +331,15 @@ enum { ZSL_TOEND = 2, /* Go to the end of the new line */ }; + +/* Type arguments to addsuffix() */ +enum suffixtype { + SUFTYP_POSSTR, /* String of characters to match */ + SUFTYP_NEGSTR, /* String of characters not to match */ + SUFTYP_POSRNG, /* Range of characters to match */ + SUFTYP_NEGRNG /* Range of characters not to match */ +}; + #ifdef DEBUG #define STRINGIFY_LITERAL(x) # x #define STRINGIFY(x) STRINGIFY_LITERAL(x) -- cgit v1.2.3-70-g09d2