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:
parent
b85a444fe0
commit
98e306e251
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user