1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-28 15:01:21 +02:00

unposted: badly positioned declaration in complist.c

This commit is contained in:
Peter Stephenson 2006-08-07 15:58:44 +00:00
parent b85a444fe0
commit 98e306e251
2 changed files with 5 additions and 1 deletions

@ -1,5 +1,7 @@
2006-08-07 Peter Stephenson <pws@csr.com>
* unposted: Src/Zle/complist.c: another bad declaration.
* 22589: Src/Zle/complist.c: bug in menu selection when displaying
long lines.

@ -1970,8 +1970,10 @@ msearch(Cmatch **ptr, int ins, int back, int rep, int *wrapp)
if (lastchar_wide_valid)
{
mbstate_t mbs;
int len;
memset(&mbs, 0, sizeof(mbs));
int len = wcrtomb(s, lastchar_wide, &mbs);
len = wcrtomb(s, lastchar_wide, &mbs);
if (len < 0)
len = 0;
s[len] = '\0';