diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-18 13:57:25 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-18 13:57:25 +0000 |
commit | d7c13fb2c3b1b014acde9c1cb17a1e34239b9751 (patch) | |
tree | 7b31d7d08233e1cc1b1ab46af1ac44b25ed4f2c1 /Src/Zle/complist.c | |
parent | 294ef9e87237bf1dc12b17a26bc4b22aa5604282 (diff) | |
download | zsh-d7c13fb2c3b1b014acde9c1cb17a1e34239b9751.tar.gz zsh-d7c13fb2c3b1b014acde9c1cb17a1e34239b9751.tar.xz zsh-d7c13fb2c3b1b014acde9c1cb17a1e34239b9751.zip |
20822: Initial code for Unicode/multibyte input
20823: Debugging test in stat wrong for 64-bit systems
Diffstat (limited to 'Src/Zle/complist.c')
-rw-r--r-- | Src/Zle/complist.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 1cc709817..748b1fdf7 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -1869,6 +1869,10 @@ msearch(Cmatch **ptr, int ins, int back, int rep, int *wrapp) msearchpush(ptr, back); if (ins) { + /* + * TODO: probably need to convert back to multibyte character + * string? Who knows... + */ s[0] = lastchar; s[1] = '\0'; @@ -2802,9 +2806,7 @@ domenuselect(Hookdef dummy, Chdata dat) } } if (cmd == Th(z_selfinsertunmeta)) { - lastchar &= 0x7f; - if (lastchar == '\r') - lastchar = '\n'; + fixunmeta(); } wrap = 0; np = msearch(p, ins, (ins ? (mode == MM_BSEARCH) : back), |