Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

More on getkeycmd()



It occurred to me that the patch I posted in 21760 causes longer bindings
in the local map to hide prefixes in the global map.  That's probably not
the desired behavior; the change would be as follows.  Should this get
committed also?

Index: Src/Zle/zle_keymap.c
===================================================================
diff -c -r1.11 zle_keymap.c
--- Src/Zle/zle_keymap.c	27 Sep 2005 14:40:38 -0000	1.11
+++ Src/Zle/zle_keymap.c	27 Sep 2005 14:47:10 -0000
@@ -1300,10 +1300,9 @@
 	    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;



Messages sorted by: Reverse Date, Date, Thread, Author