Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Have 'bindkey -N new bad' report no such 'bad' (was 'new').
- X-seq: zsh-workers 30641
- From: John Stahara <john.stahara@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] Have 'bindkey -N new bad' report no such 'bad' (was 'new').
- Date: Fri, 24 Aug 2012 17:58:55 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=ucyN9AvMPHvxzM8fmNAgVvSvlZvSV4VBIhc0G+vzeeY=; b=EeKPWZOIb/bpiwB/1ZkQ4m3OX+cre3/T/5xZdLF4vsSUmDFIwQ3LI77onP1f84wDPa UvH8GTSLclFKdQ22aqVTc5LKAEVucKJx+tViqRuNmn0y3xZj1tooQKr4JYjUEi2ELi9f OihEU0V/LbMohJxi+nIqnlDG0V1bnYGGiGRuZauCTFq4XVLWOb00cs66JLNSu6FEqcgF 2klQEdLDpxy9qOoCObaQn8iw8pZqhzIw089EYwAuOrg/e/v4Xyx/6ztoUhcFHrU5ZJdT rlcRG+RdxcZeSXyMINbMs59AR0aNRBeLT6xDRjztwNqv5VFhQ3cv/htp4pAueNW2FY2r X1cQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
From: John Stahara <john.stahara@xxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author