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

36641: fix multibyte handling in incremental search during menu selection

This commit is contained in:
Barton E. Schaefer 2015-09-26 13:46:20 -07:00
parent 92584634d3
commit 50721a1986
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2015-09-26 Barton E. Schaefer <schaefer@zsh.org>
* 36641: Src/Modules/complist.c: fix multibyte handling in
incremental search during menu selection
2015-09-26 Daniel Shahaf <d.s@daniel.shahaf.name>
* unposted (see 36633): Completion/Unix/Command/_hg: _hg:

View file

@ -3300,7 +3300,7 @@ domenuselect(Hookdef dummy, Chdata dat)
int len;
memset(&mbs, 0, sizeof(mbs));
len = wcrtomb(s, lastchar_wide, &mbs);
len = wcrtomb(toins, lastchar_wide, &mbs);
if (len < 0)
len = 0;
insert[len] = '\0';