about summary refs log tree commit diff
path: root/Src/Zle/zle.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-11-07 09:37:34 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-11-07 09:37:34 +0000
commite366ca8dbfb3d38e4bcbfa02965d6736a7e6bdca (patch)
treed7f7552cb4e0b1fe29e1fbf7fb34d47577d6ba1f /Src/Zle/zle.h
parent78ace07e1604b4ffd990fea3066a9cfa2c6c5669 (diff)
downloadzsh-e366ca8dbfb3d38e4bcbfa02965d6736a7e6bdca.tar.gz
zsh-e366ca8dbfb3d38e4bcbfa02965d6736a7e6bdca.tar.xz
zsh-e366ca8dbfb3d38e4bcbfa02965d6736a7e6bdca.zip
users/9638: tweaks for FCEDIT etc.
21986: rewrite completion suffixes for wide characters
Diffstat (limited to 'Src/Zle/zle.h')
-rw-r--r--Src/Zle/zle.h16
1 files changed, 15 insertions, 1 deletions
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)