From 4b66ec003ff0631e39240576920dda971d555f6d Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Tue, 4 Nov 2014 14:08:20 +0100 Subject: 33596: make local keymap keybinding hide global keymap binding that is a prefix of the local binding --- Src/Zle/zle_keymap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle/zle_keymap.c') diff --git a/Src/Zle/zle_keymap.c b/Src/Zle/zle_keymap.c index e21e769bd..6a7107609 100644 --- a/Src/Zle/zle_keymap.c +++ b/Src/Zle/zle_keymap.c @@ -1435,7 +1435,7 @@ getkeymapcmd(Keymap km, Thingy *funcp, char **strp) loc = ((f = keybind(localkeymap, keybuf, &s)) != t_undefinedkey); ispfx = keyisprefix(localkeymap, keybuf); } - if (!loc) + if (!loc && !ispfx) f = keybind(km, keybuf, &s); ispfx |= keyisprefix(km, keybuf); -- cgit 1.4.1