diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-01-25 16:40:41 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-01-25 16:40:41 +0000 |
commit | efd03cf9e892d8faade5c2012ebfd6fac02664d4 (patch) | |
tree | d7b418fac53d0cbb76e538150a734a75b7784746 /Src/Zle/zle.h | |
parent | b80c6b0863127da4511abf2ebb1f9328db5730aa (diff) | |
download | zsh-efd03cf9e892d8faade5c2012ebfd6fac02664d4.tar.gz zsh-efd03cf9e892d8faade5c2012ebfd6fac02664d4.tar.xz zsh-efd03cf9e892d8faade5c2012ebfd6fac02664d4.zip |
20742: More Unicode conversion stuff.
Diffstat (limited to 'Src/Zle/zle.h')
-rw-r--r-- | Src/Zle/zle.h | 17 |
1 files changed, 11 insertions, 6 deletions
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; }; |