diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Src/Zle/computil.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index a52014b14..0df3589a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2015-07-05 Peter Stephenson <p.w.stephenson@ntlworld.com> + * 35692: Src/Zle/computil.c: cfp_matcher_range used wrong raw + character if it couldn't be converted to wchar_t. + * 35688: Src/text.c: Slightly more nearly definitive version of turning wordcode case statements back to text. diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 27938c17f..e5db0867b 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -4196,7 +4196,7 @@ cfp_matcher_range(Cmatcher *ms, char *add) addlen = MB_METACHARLENCONV(add, &addc); #ifdef MULTIBYTE_SUPPORT if (addc == WEOF) - addc = (wchar_t)(*p == Meta ? p[1] ^ 32 : *p); + addc = (wchar_t)(*add == Meta ? add[1] ^ 32 : *add); #endif if (!(m = *mp)) { |