From 50721a1986a3637e923ccc4531135b8aa39c8e70 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sat, 26 Sep 2015 13:46:20 -0700 Subject: 36641: fix multibyte handling in incremental search during menu selection --- ChangeLog | 5 +++++ Src/Zle/complist.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f700ec067..964e340f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-09-26 Barton E. Schaefer + + * 36641: Src/Modules/complist.c: fix multibyte handling in + incremental search during menu selection + 2015-09-26 Daniel Shahaf * unposted (see 36633): Completion/Unix/Command/_hg: _hg: diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 01bcb7cf8..433701514 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -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'; -- cgit 1.4.1