summaryrefslogtreecommitdiffstats
path: root/cmd-list-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-03-22 15:52:40 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-03-22 15:52:40 +0000
commit58932295fcd80062569e808897e9e1d252ec888a (patch)
treebd1865707d9b377bd010ce3185ee0347200e6c71 /cmd-list-keys.c
parent8478895eeb014a4219c4d61edd598c05b073db68 (diff)
Add copy-pipe mode command to copy selection and also pipe to a command.
Diffstat (limited to 'cmd-list-keys.c')
-rw-r--r--cmd-list-keys.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd-list-keys.c b/cmd-list-keys.c
index ff6421ad..dab6d545 100644
--- a/cmd-list-keys.c
+++ b/cmd-list-keys.c
@@ -138,9 +138,12 @@ cmd_list_keys_table(struct cmd *self, struct cmd_ctx *ctx)
mode = "c";
cmdstr = mode_key_tostring(mtab->cmdstr, mbind->cmd);
if (cmdstr != NULL) {
- ctx->print(ctx, "bind-key -%st %s%s %*s %s",
+ ctx->print(ctx, "bind-key -%st %s%s %*s %s%s%s%s",
mode, any_mode && *mode == '\0' ? " " : "",
- mtab->name, (int) width, key, cmdstr);
+ mtab->name, (int) width, key, cmdstr,
+ mbind->arg != NULL ? " \"" : "",
+ mbind->arg != NULL ? mbind->arg : "",
+ mbind->arg != NULL ? "\"": "");
}
}