diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-10-28 17:34:33 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-10-28 17:34:33 +0000 |
commit | aea77152614952519351b5a52b6ec19ea7c302c2 (patch) | |
tree | 12c6d5e230749099ad19a5f75bb9cfa7ce18ba70 /Src/Zle/zle_misc.c | |
parent | 5f11a38bea0b4d843c72dbdb9fab23280a0aa228 (diff) | |
download | zsh-aea77152614952519351b5a52b6ec19ea7c302c2.tar.gz zsh-aea77152614952519351b5a52b6ec19ea7c302c2.tar.xz zsh-aea77152614952519351b5a52b6ec19ea7c302c2.zip |
21943, 21945: ZLE_UNICODE_SUPPORT -> MULTIBYTE_SUPPORT;
use multibyte versions of nicechar wherever possible.
Diffstat (limited to 'Src/Zle/zle_misc.c')
-rw-r--r-- | Src/Zle/zle_misc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Src/Zle/zle_misc.c b/Src/Zle/zle_misc.c index 5a97b0a75..75b907f32 100644 --- a/Src/Zle/zle_misc.c +++ b/Src/Zle/zle_misc.c @@ -60,7 +60,7 @@ doinsert(ZLE_STRING_T zstr, int len) mod_export int selfinsert(UNUSED(char **args)) { -#ifdef ZLE_UNICODE_SUPPORT +#ifdef MULTIBYTE_SUPPORT /* wint_t and wchar_t not neccessarily the same size */ wchar_t tmp; @@ -82,7 +82,7 @@ fixunmeta(void) lastchar &= 0x7f; if (lastchar == '\r') lastchar = '\n'; -#ifdef ZLE_UNICODE_SUPPORT +#ifdef MULTIBYTE_SUPPORT /* * TODO: can we do this better? * We need a wide character to insert. @@ -529,7 +529,7 @@ digitargument(UNUSED(char **args)) { int sign = (zmult < 0) ? -1 : 1; -#ifdef ZLE_UNICODE_SUPPORT +#ifdef MULTIBYTE_SUPPORT /* * It's too dangerous to allow metafied input. See * universalargument for comments on (possibly suboptimal) handling @@ -953,7 +953,7 @@ executenamedcommand(char *prmt) if (len == NAMLEN || cmd != Th(z_selfinsert)) feep = 1; else { -#ifdef ZLE_UNICODE_SUPPORT +#ifdef MULTIBYTE_SUPPORT if (!lastchar_wide_valid) getrestchar(lastchar); if (iswcntrl(lastchar_wide)) @@ -1137,7 +1137,7 @@ iremovesuffix(ZLE_CHAR_T c, int keep) zsfree(suffixfunc); suffixfunc = NULL; } else { -#ifdef ZLE_UNICODE_SUPPORT +#ifdef MULTIBYTE_SUPPORT /* TODO: best I can think of for now... */ int sl = (unsigned int)c <= 256 ? suffixlen[c] : 0; #else |