zsh-workers
 help / color / mirror / code / Atom feed
* More on getkeycmd()
@ 2005-09-27 14:53 Bart Schaefer
  2005-09-27 15:01 ` Peter Stephenson
  2014-11-03  8:45 ` PATCH: give precedence to local keymaps (was Re: More on getkeycmd()) Oliver Kiddle
  0 siblings, 2 replies; 7+ messages in thread
From: Bart Schaefer @ 2005-09-27 14:53 UTC (permalink / raw)
  To: zsh-workers

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;


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-11-04  3:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-27 14:53 More on getkeycmd() Bart Schaefer
2005-09-27 15:01 ` Peter Stephenson
2005-09-27 15:43   ` Bart Schaefer
2014-11-03  8:45 ` PATCH: give precedence to local keymaps (was Re: More on getkeycmd()) Oliver Kiddle
2014-11-03  9:33   ` Bart Schaefer
2014-11-03 16:30     ` Oliver Kiddle
2014-11-04  3:58       ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).