mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-18 06:53:35 -04:00
36641: fix multibyte handling in incremental search during menu selection
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user