* [PATCH] Have 'bindkey -N new bad' report no such 'bad' (was 'new').
@ 2012-08-24 21:58 John Stahara
0 siblings, 0 replies; only message in thread
From: John Stahara @ 2012-08-24 21:58 UTC (permalink / raw)
To: zsh-workers
From: John Stahara <john.stahara@gmail.com>
If the second parameter to 'bindkey -N' refers to a map that does not
exist, it should be that one which is reported as missing, rather than
the new one the user is attempting to create.
---
Src/Zle/zle_keymap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Src/Zle/zle_keymap.c b/Src/Zle/zle_keymap.c
index c3731c4..e21e769 100644
--- a/Src/Zle/zle_keymap.c
+++ b/Src/Zle/zle_keymap.c
@@ -912,7 +912,7 @@ bin_bindkey_new(char *name, UNUSED(char *kmname), Keymap km, char **argv, UNUSED
if(argv[1]) {
km = openkeymap(argv[1]);
if(!km) {
- zwarnnam(name, "no such keymap `%s'", argv[0]);
+ zwarnnam(name, "no such keymap `%s'", argv[1]);
return 1;
}
} else
--
1.7.8.6
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-24 22:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-24 21:58 [PATCH] Have 'bindkey -N new bad' report no such 'bad' (was 'new') John Stahara
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).