diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-09-21 16:36:53 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-09-21 16:36:53 +0000 |
commit | 78d1939ffd229c8c4ff303bac6d41a08b983e65e (patch) | |
tree | ba0edef1c16e31c0c2da03b521ad5846407a5c50 /Src/Zle | |
parent | 286ca1d4875af0ee5b954ab0c00e1aee64226e08 (diff) | |
download | zsh-78d1939ffd229c8c4ff303bac6d41a08b983e65e.tar.gz zsh-78d1939ffd229c8c4ff303bac6d41a08b983e65e.tar.xz zsh-78d1939ffd229c8c4ff303bac6d41a08b983e65e.zip |
22753: minor character bugs spotted on Cygwin
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/complist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 886b4a685..1152dff7c 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -982,7 +982,7 @@ compprintfmt(char *fmt, int n, int dopr, int doesc, int ml, int *stop) len = MB_METACHARLENCONV(p, &cchar); #ifdef MULTIBYTE_SUPPORT if (cchar == WEOF) { - cchar = (wchar_t)p; + cchar = (wchar_t)(*p == Meta ? p[1] ^ 32 : *p); width = 1; } else @@ -995,7 +995,7 @@ compprintfmt(char *fmt, int n, int dopr, int doesc, int ml, int *stop) len = MB_METACHARLENCONV(p, &cchar); #ifdef MULTIBYTE_SUPPORT if (cchar == WEOF) - cchar = (wchar_t)p; + cchar = (wchar_t)(*p == Meta ? p[1] ^ 32 : *p); #endif p += len; |