diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2010-09-08 12:32:32 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-09-08 12:32:32 +0000 |
commit | 7e5a7a91354825cb01cf1f3c26995bcf0c2c27a7 (patch) | |
tree | e941fcb24ce74dceb1d3c6517e44ffcef5f81721 /Src/Zle/zle_keymap.c | |
parent | 5ae3e384f52c9d9ef9aecb955deecf236d01bbd9 (diff) | |
download | zsh-7e5a7a91354825cb01cf1f3c26995bcf0c2c27a7.tar.gz zsh-7e5a7a91354825cb01cf1f3c26995bcf0c2c27a7.tar.xz zsh-7e5a7a91354825cb01cf1f3c26995bcf0c2c27a7.zip |
28237: new parameter ZLE_LINE_ABORTED
28241: don't list .safe with bindkey -lL
Diffstat (limited to 'Src/Zle/zle_keymap.c')
-rw-r--r-- | Src/Zle/zle_keymap.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Src/Zle/zle_keymap.c b/Src/Zle/zle_keymap.c index 8fa8e9883..0531c18ca 100644 --- a/Src/Zle/zle_keymap.c +++ b/Src/Zle/zle_keymap.c @@ -829,12 +829,18 @@ bin_bindkey_lsmaps(char *name, UNUSED(char *kmname), UNUSED(Keymap km), char **a /**/ static void -scanlistmaps(HashNode hn, int list) +scanlistmaps(HashNode hn, int list_verbose) { KeymapName n = (KeymapName) hn; - if (list) { + if (list_verbose) { Keymap km = n->keymap; + /* + * Don't list ".safe" as a bindkey command; we can't + * actually create it that way. + */ + if (!strcmp(n->nam, ".safe")) + return; fputs("bindkey -", stdout); if (km->primary && km->primary != n) { KeymapName pn = km->primary; |