From 6183db6faa0815f09267062769c602a1de3d9e81 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Thu, 29 Sep 2005 14:39:18 +0000 Subject: 21770: tweak 21760 to avoid conflicts with global bindings --- Src/Zle/zle_keymap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Src/Zle/zle_keymap.c') diff --git a/Src/Zle/zle_keymap.c b/Src/Zle/zle_keymap.c index de1d918ba..3045eddd8 100644 --- a/Src/Zle/zle_keymap.c +++ b/Src/Zle/zle_keymap.c @@ -1300,10 +1300,9 @@ getkeymapcmd(Keymap km, Thingy *funcp, char **strp) loc = ((f = keybind(localkeymap, keybuf, &s)) != t_undefinedkey); ispfx = keyisprefix(localkeymap, keybuf); } - if (!loc && !ispfx) { + if (!loc) f = keybind(km, keybuf, &s); - ispfx = keyisprefix(km, keybuf); - } + ispfx |= keyisprefix(km, keybuf); if (f != t_undefinedkey) { lastlen = keybuflen; -- cgit 1.4.1