users/21071: Fix binding of multibyte sequences.

There was a problem if the first byte was already bound to
self-insert.
This commit is contained in:
Peter Stephenson 2015-12-08 10:56:17 +00:00
parent f5b8efa7e0
commit 59de978c7e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2015-12-08 Peter Stephenson <p.stephenson@samsung.com>
* users/21071: Src/Zle/zle_keymap.c: Multibyte key sequences
couldn't be bound if the initial byte was the start of any
self-insert sequence.
2015-12-07 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 37344: Doc/Zsh/expn.yo, Src/subst.c, Src/utils.c, Src/zsh.h,

View File

@ -1503,7 +1503,7 @@ getkeymapcmd(Keymap km, Thingy *funcp, char **strp)
f->widget->flags & ZLE_VIOPER);
#ifdef MULTIBYTE_SUPPORT
if ((f == Th(z_selfinsert) || f == Th(z_selfinsertunmeta)) &&
!lastchar_wide_valid) {
!lastchar_wide_valid && !ispfx) {
int len;
VARARR(char, mbc, MB_CUR_MAX);
ZLE_INT_T inchar = getrestchar(lastchar, mbc, &len);