From efd03cf9e892d8faade5c2012ebfd6fac02664d4 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 25 Jan 2005 16:40:41 +0000 Subject: 20742: More Unicode conversion stuff. --- Src/Zle/zle.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'Src/Zle/zle.h') diff --git a/Src/Zle/zle.h b/Src/Zle/zle.h index be6e2c80b..196824094 100644 --- a/Src/Zle/zle.h +++ b/Src/Zle/zle.h @@ -99,8 +99,10 @@ struct change { int flags; /* see below */ int hist; /* history line being changed */ int off; /* offset of the text changes */ - char *del; /* characters to delete (metafied) */ - char *ins; /* characters to insert (metafied) */ + ZLE_STRING_T del; /* characters to delete */ + int dell; /* no. of characters in del */ + ZLE_STRING_T ins; /* characters to insert */ + int insl; /* no. of characters in ins */ int old_cs, new_cs; /* old and new cursor positions */ }; @@ -123,12 +125,15 @@ typedef void (*KeyScanFunc) _((char *, Thingy, char *, void *)); #define removesuffix() iremovesuffix(256, 0) -/* Cut/kill buffer type. The buffer itself is purely binary data, * - * not NUL-terminated. len is a length count. flags uses the * - * CUTBUFFER_* constants defined below. */ +/* + * Cut/kill buffer type. The buffer itself is purely binary data, not + * NUL-terminated. len is a length count (N.B. number of characters, + * not size in bytes). flags uses the CUTBUFFER_* constants defined + * below. + */ struct cutbuffer { - char *buf; + ZLE_STRING_T buf; size_t len; char flags; }; -- cgit 1.4.1