mirror of git://git.code.sf.net/p/zsh/code
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:
parent
f5b8efa7e0
commit
59de978c7e
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue