From 78d1939ffd229c8c4ff303bac6d41a08b983e65e Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 21 Sep 2006 16:36:53 +0000 Subject: 22753: minor character bugs spotted on Cygwin --- Src/Zle/complist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/Zle') 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; -- cgit 1.4.1